introduce unsafe_proto

- `Array.prototype.slice` => `[].slice`

closes #1491
This commit is contained in:
alexlamsl
2017-02-18 19:34:54 +08:00
parent ac0b61ed6e
commit ec64acd2c8
3 changed files with 42 additions and 0 deletions

View File

@@ -346,6 +346,9 @@ to set `true`; it's effectively a shortcut for `foo=true`).
comparison are switching. Compression only works if both `comparisons` and
`unsafe_comps` are both set to true.
- `unsafe_proto` (default: false) -- optimize expressions like
`Array.prototype.slice.call(a)` into `[].slice.call(a)`
- `conditionals` -- apply optimizations for `if`-s and conditional
expressions