Commit Graph

381 Commits

Author SHA1 Message Date
Onoshko Dan
ff64dec3f7 Demo updated. 2014-04-28 15:20:12 +07:00
Onoshko Dan
50ff6c272c Functions features completed. 2014-04-28 03:30:25 +07:00
Onoshko Dan
3ce0b42fd7 Binding toplevel main functions to onload event. 2014-04-24 00:05:34 +07:00
Onoshko Dan
f88a7e12d9 Array sugar added. 2014-04-22 20:33:43 +07:00
Onoshko Dan
b2bffc40cd Array arr[] operator added. 2014-04-21 01:56:47 +07:00
Onoshko Dan
514d9e5f01 Demo updated. 2014-04-20 22:57:10 +07:00
Onoshko Dan
a8f26fdf33 Arrow functions added. 2014-04-20 22:38:58 +07:00
Onoshko Dan
7bdb095cee New features added.
Operator `clone` and anonymous function definition `(){}`.
2014-04-20 14:31:03 +07:00
Onoshko Dan
9f024d3a3d Utils updated. 2014-04-20 01:42:58 +07:00
Onoshko Dan
2cff0f2f3e new declaration of functions added 2014-04-20 01:04:11 +07:00
Onoshko Dan
bf3979f327 is_js fix 2014-04-19 01:45:18 +07:00
Onoshko Dan
f11dc117eb new demo 2014-04-19 01:33:08 +07:00
Onoshko Dan
e1a702e9a1 new syntax added
`some?? || isset some`, `Type some, some2`, `a ? b`
2014-04-19 01:27:47 +07:00
Onoshko Dan
1f50f97757 Demo code by default 2014-04-18 14:14:54 +07:00
Onoshko Dan
2f11d32a70 Adding std functions if need. 2014-04-18 13:10:20 +07:00
Onoshko Dan
ea892ef28c Refactoring over! 2014-04-17 23:21:45 +07:00
Onoshko Dan
d461f9d927 parse.js refectory is done 2014-04-17 17:10:18 +07:00
Onoshko Dan
db5ea25e30 Refactoring
Step 2
2014-04-17 01:39:27 +07:00
Onoshko Dan
10db7a5ef4 Refactoring
step 1
2014-04-16 23:43:40 +07:00
Onoshko Dan
ba3a59843a use transform insted treewalker 2014-04-15 22:11:59 +07:00
Onoshko Dan
363019dc5a use transform insted treewalker 2014-04-15 21:48:09 +07:00
Onoshko Dan
a2f7a07c11 license updated 2014-04-15 19:57:14 +07:00
Onoshko Dan
f856b3f949 license updated 2014-04-15 19:47:04 +07:00
Onoshko Dan
b7d220ae12 First step is done.
index.html - playground
2014-04-15 17:52:01 +07:00
Onoshko Dan
b5dd0a9774 Going to ColaScript!!!
Start work on ColaScript translator.
2014-04-14 10:35:26 +07:00
Arnavion
014f655c5f Handle the case when SourceMapConsumer.originalPositionFor returns null source.
This happens when SourceMapConsumer does not have a valid position to map the input line and column. This is a change in mozilla/source-map starting from version 0.1.33

Fixes #436
2014-03-02 19:20:19 -08:00
Mihai Bazon
bf30dc3038 Mangle name of exception when --screw-ie8. Fix #430.
The effect of not mangling it was visible only with --screw-ie8 (otherwise
the names would be mangled exactly because they leaked into the parent
scope).
2014-02-14 13:58:14 +02:00
Mihai Bazon
ef2ef07cbd Add option keep_fargs.
By default it's `false`.  Pass `true` if you need to keep unused function
arguments.

Close #188.
2014-02-08 12:33:56 +02:00
Matt Basta
ac0086a745 Simplify nested conditionals if possible 2014-02-06 12:39:13 -08:00
Mihai Bazon
5344b7dab8 Fix if_return dropping the alternative. Close #413 2014-01-31 10:44:13 +02:00
Mihai Bazon
e29048b54a Merge branch 'master' of github.com:mishoo/UglifyJS2 2014-01-26 10:07:10 +02:00
Mihai Bazon
ceb200fe81 Move unescaping regexps under a codegen option (unescape_regexps) 2014-01-26 10:05:55 +02:00
Daniel Stutzman
f5f8239057 Don't unescape \x00 in regexes (it breaks IE8) 2014-01-25 11:55:39 -07:00
Mihai Bazon
931862e97f More chars that cannot be unescaped in regexps. 2014-01-21 11:44:00 +02:00
Mihai Bazon
1d0127de21 Fix end token for conditionals. Close #404 2014-01-21 10:38:59 +02:00
Ville Lautanala
1e31011874 Don't unescape byte order marks in regexps 2014-01-19 12:27:03 +02:00
Mihai Bazon
4339bd5cfa Don't unescape \x2f (slash) in regexps. #54 2014-01-18 12:31:50 +02:00
Mihai Bazon
90a330da16 simplify 2014-01-10 10:36:15 +02:00
Mihai Bazon
cad1f9cbd1 Unescape Unicode sequences in regexps when ascii_only is false. #54 2014-01-10 10:33:58 +02:00
Mihai Bazon
c3087dd179 Better process_for_angular before other statement reductions. #395 2014-01-08 11:39:24 +02:00
Mihai Bazon
2c305af478 Support @ngInject with angular compressor option. Close #395. 2014-01-08 11:28:32 +02:00
Mihai Bazon
2c88eb6fbe doh. 2014-01-07 12:54:14 +02:00
Mihai Bazon
27142df4f5 minor: exp["10"] => exp[10] 2014-01-07 12:48:21 +02:00
Mihai Bazon
5e4c7f4245 Fix parens for property access -- (foo, bar)["baz"] 2014-01-05 11:48:01 +02:00
Mihai Bazon
b521b4b926 Conditional/call optimization
foo ? bar(x) : bar(y)  ==>  bar(foo ? x : y)
2013-12-29 10:31:30 +02:00
Mihai Bazon
aa9de76370 Mark yield as reserved word. Close #375. 2013-12-22 20:52:19 +02:00
Mihai Bazon
5a083a938d Optimize seq,void 0. Close #377.
(x, void 0)    => void x
    (x, undefined) => void x
2013-12-22 11:36:45 +02:00
Mihai Bazon
7a30d826b8 Better fix for comments in AST_Exit
Close #374
2013-12-18 15:54:12 +02:00
Mihai Bazon
be55a09edf Take out all comments from an AST_Exit's value
Fix #372
2013-12-18 13:30:26 +02:00
Mihai Bazon
428e19fed2 Add option to adjust the src/target line in the source map 2013-12-18 12:10:02 +02:00