whitelist `unsafe` `evaluate` candidates (#2039)
authorAlex Lam S.L <alexlamsl@gmail.com>
Wed, 31 May 2017 20:33:05 +0000 (04:33 +0800)
committerGitHub <noreply@github.com>
Wed, 31 May 2017 20:33:05 +0000 (04:33 +0800)
commitec095ed647691b3458ec9e65e89ff92d5151abc4
tree60cf1f1d92938bbcbb3d02b9ea562ad259727755
parent17e73121fa641c14fd9f4cdd3310bf3e8ec037d0
whitelist `unsafe` `evaluate` candidates (#2039)

- all arguments may accept constant values
- return constant value
- free of side effects
- available & identical across locales and runtime environments
lib/compress.js
test/compress/evaluate.js