Alex Lam S.L
3ca902258c
fix bugs with getter/setter ( #1926 )
...
- `reduce_vars`
- `side_effects`
- property access for object
- `AST_SymbolAccessor` as key names
enhance `test/ufuzz.js`
- add object getter & setter
- property assignment to setter
- avoid infinite recursion in setter
- fix & adjust assignment operators
- 50% `=`
- 25% `+=`
- 2.5% each for the rest
- avoid "Invalid array length"
- fix `console.log()`
- bypass getter
- curb recursive reference
- deprecate `-E`, always report runtime errors
2017-05-14 02:10:34 +08:00
kzc
91de285166
uglify-es: update homepage in package.json ( #1933 )
...
to point to harmony branch on github
2017-05-14 00:25:06 +08:00
kzc
4d8f289eb0
fix export default expression; ( #1932 )
2017-05-13 12:56:46 +08:00
olsonpm
fd0951231c
document 3 max passes ( #1928 )
2017-05-13 12:54:32 +08:00
olsonpm
9e29b6dad2
clarify wording ( #1931 )
2017-05-13 12:54:01 +08:00
Alex Lam S.L
c391576d52
remove support for const ( #1910 )
...
As this is not part of ES5.
2017-05-12 14:57:41 +08:00
Alex Lam S.L
ac73c5d421
avoid arguments and eval in reduce_vars ( #1924 )
...
fixes #1922
2017-05-12 12:34:55 +08:00
olsonpm
547f41beba
add documentation for side_effects & [#@]__PURE__ ( #1925 )
2017-05-12 12:29:55 +08:00
Alex Lam S.L
945ba64160
Merge pull request #1923 from alexlamsl/harmony-v3.0.4
...
Merging from master for 3.0.4
harmony-v3.0.4
2017-05-12 06:52:21 +08:00
Anthony Van de Gejuchte
c699200398
Make sure globals can be accessed from the browser ( #1920 )
...
Note: no tests as there are no integration tests
2017-05-12 05:50:35 +08:00
alexlamsl
daf44f2b21
Merge branch 'master' into harmony-v3.0.4
2017-05-12 05:13:11 +08:00
Alex Lam S.L
daaefc17b9
v3.0.4
v3.0.4
2017-05-12 04:52:39 +08:00
Alex Lam S.L
1d407e761e
fix invalid transform on const ( #1919 )
...
- preserve (re)assignment to `const` for runtime error
- suppress `cascade` on `const`, as runtime behaviour is ill-defined
2017-05-12 04:51:44 +08:00
kzc
2b44f4ae30
update README ( #1918 )
2017-05-12 03:36:33 +08:00
Alexis Tyler
e51c3541da
fix typo ( #1913 )
2017-05-11 20:24:33 +08:00
Alex Lam S.L
3bf194684b
update documentation ( #1909 )
...
- clarify options on `--source-map`
- fix `minify()` examples
fixes #1905
2017-05-11 17:50:50 +08:00
Gyusun Yeom
fcd90db30d
fix safari syntax error - declare twice ( #1851 )
...
To avoid Safari bug, scope of for loop should enclose parent scope variables.
fixes #1753
2017-05-11 16:48:43 +08:00
Alex Lam S.L
e2888bdc43
Merge pull request #1901 from alexlamsl/harmony-v3.0.3
...
Merging from master for 3.0.3
harmony-v3.0.3
2017-05-10 14:26:58 +08:00
alexlamsl
fb50b7b627
Merge branch 'master' into harmony-v3.0.3
2017-05-10 11:52:59 +08:00
Alex Lam S.L
aae7d49d0c
v3.0.3
v3.0.3
2017-05-10 11:45:03 +08:00
kzc
9d59c693c2
fix for-of loop with const iterator ( #1899 )
2017-05-10 11:36:03 +08:00
kzc
0459af2ecc
Update issue template: change harmony to uglify-es ( #1900 )
2017-05-10 11:07:54 +08:00
kzc
04f2344efc
Remove unnecessary git clone instructions in README ( #1897 )
2017-05-10 11:06:50 +08:00
kzc
6ddb5bd94d
Remove incorrect git clone instructions from uglify-es README ( #1896 )
2017-05-10 11:06:22 +08:00
kzc
bad9d5cf88
Change harmony to uglify-es in master README ( #1895 )
2017-05-10 05:07:45 +08:00
kzc
eda49605c5
Have harmony docs use uglify-es package name. ( #1894 )
2017-05-10 04:41:09 +08:00
Alex Lam S.L
a0f5f862df
gracefully handle non-Error being thrown ( #1893 )
2017-05-10 04:20:59 +08:00
Alex Lam S.L
1e9ef17e32
Merge pull request #1892 from alexlamsl/harmony-v3.0.2
...
Merging from master for 3.0.2
harmony-v3.0.2
2017-05-10 03:14:45 +08:00
Alex Lam S.L
41996be86f
extend test timeout
...
Travis has gone a lot slower recently, and most test failures are due to time-out on this particular test.
2017-05-10 02:43:12 +08:00
alexlamsl
222100ea4c
Merge branch 'master' into harmony-v3.0.2
2017-05-10 01:57:32 +08:00
Alex Lam S.L
5fd8244a2e
v3.0.2
v3.0.2
2017-05-10 01:52:00 +08:00
Alex Lam S.L
93db48a317
rename package
2017-05-10 01:46:55 +08:00
Alex Lam S.L
2944e3df7d
fix collapse_vars on destructuring declarations ( #1889 )
...
fixes #1886
2017-05-09 17:44:28 +08:00
Alex Lam S.L
c14e280585
print error stack in CLI ( #1890 )
2017-05-09 16:36:44 +08:00
Alex Lam S.L
bc3fa78e8c
mention minify().error
2017-05-09 16:09:48 +08:00
Alex Lam S.L
8c7c107765
update minify() usage in test/ufuzz.js ( #1888 )
...
fixes #1887
2017-05-09 15:58:46 +08:00
Alex Lam S.L
e0ae8da089
Merge pull request #1885 from alexlamsl/harmony-v3.0.1
...
Merging from master for 3.0.1
harmony-v3.0.1
2017-05-09 02:49:28 +08:00
alexlamsl
81f1311b24
Merge branch 'master' into harmony-v3.0.1
2017-05-09 02:10:06 +08:00
Alex Lam S.L
2433bb4e52
fix Unicode handling in parser ( #1884 )
...
There was an implicit assumption that first character within surrogate header range implies the next character must form a surrogate pair, which is not necessarily true.
2017-05-09 01:58:31 +08:00
kzc
3dd328dce3
[3.x] fix documentation for beautify options ( #1882 )
...
- use underscores rather than dashes.
2017-05-08 23:06:56 +08:00
Alex Lam S.L
014f428153
v3.0.1
v3.0.1
2017-05-08 07:05:57 +08:00
Alex Lam S.L
a3b2eb75bd
return Error from minify() ( #1880 )
...
Have `minify()` return `Error` in `result.error` rather than throwing it.
2017-05-08 07:05:19 +08:00
Alex Lam S.L
da295de82b
support dumping AST ( #1879 )
...
Re-order `AST_Binary` properties to make dump more readable.
closes #769
2017-05-08 06:23:01 +08:00
Alex Lam S.L
4f8ca4626e
deprecate low level API ( #1877 )
...
fixes #1872
2017-05-08 03:24:42 +08:00
Alex Lam S.L
e54748365c
support minify() output as AST ( #1878 )
...
- `options.output.ast` (default `false`)
- `options.output.code` (default `true`)
2017-05-08 02:11:45 +08:00
Alex Lam S.L
3fac29a017
Merge pull request #1876 from alexlamsl/harmony-v3.0.0
...
Merging from master for 3.0.0
harmony-v3.0.0
2017-05-08 01:44:07 +08:00
alexlamsl
b4c18f6b83
Merge branch 'master' into harmony-v3.0.0
2017-05-07 15:34:16 +08:00
Alex Lam S.L
2d99d06601
update documentation
...
Remove deprecated CLI option
2017-05-07 03:02:46 +08:00
Alex Lam S.L
98cf95e5b5
fix test for #1865 ( #1873 )
2017-05-07 02:56:02 +08:00
Alex Lam S.L
7313465cba
v3.0.0
v3.0.0
2017-05-06 23:51:10 +08:00