Commit Graph

1045 Commits

Author SHA1 Message Date
Sebastian McKenzie
52d4d73f0b remove block binding because the current implementation is flaky and will have to be rewritten from scratch without the issue of wrapping functions 2014-10-12 16:18:18 +11:00
Sebastian McKenzie
73c491ecb4 better arguments aliasing for arrow functions, add it to block binding - fixes #52 2014-10-12 15:32:40 +11:00
Sebastian McKenzie
4a1496ee05 remove traversal and removal of EmptyStatements and add source map testing support 2014-10-12 13:42:27 +11:00
Sebastian McKenzie
86903f1087 remove unused formatJSON method, more reliable parse errors 2014-10-12 13:41:52 +11:00
Sebastian McKenzie
c3541a65cc remove null supername hack 2014-10-12 13:41:22 +11:00
Sebastian McKenzie
2e404c92c8 better support for Identifier in ForOfStatement 2014-10-12 13:39:59 +11:00
Sebastian McKenzie
bb697c6436 fix static member expression calls, make classes more spec-compliant 2014-10-12 13:39:10 +11:00
Sebastian McKenzie
5edbb63f9a more reliable super parsing in classes - fixes #51 2014-10-12 09:39:29 +11:00
Sebastian McKenzie
27cb0f6f87 fix blacklist traversal bug - fixes #49 2014-10-12 09:34:01 +11:00
Sebastian McKenzie
0f7da020e3 change obj references to a unique identifier 2014-10-12 00:23:13 +11:00
Sebastian McKenzie
16010575b5 add missing util tests and remove dead util methods 2014-10-11 23:39:56 +11:00
Sebastian McKenzie
2dbdb9e3a5 support patterns in constants 2014-10-11 23:31:53 +11:00
Sebastian McKenzie
01413e5153 recapture stack trace in case the stack was built prior 2014-10-11 22:40:09 +11:00
Sebastian McKenzie
9a8dfd105e add jsx to canCompile 2014-10-11 22:00:22 +11:00
Sebastian McKenzie
1571ba2045 add sourceMapName and sourceFileName options, make them default to the filename option - resolves #44 2014-10-11 15:01:42 +11:00
Sebastian McKenzie
298184763a remove ast option and always return it 2014-10-11 14:28:41 +11:00
Sebastian McKenzie
ab46a26508 treat arrow functions as another function type when transforming 2014-10-11 14:08:53 +11:00
Sebastian McKenzie
a40cbc2cee make class methods unenumerable - fixes #41 2014-10-11 11:49:03 +11:00
Sebastian McKenzie
3fb17b00a6 fix spread and super resolution - fixes #42 2014-10-11 10:44:51 +11:00
Sebastian McKenzie
603ae290cd check for absolute path before joining cwd in 6to5-node - fixes #43 2014-10-11 09:30:58 +11:00
Sebastian McKenzie
9b82c5b99c refer to parent arguments inside arrow functions - fixes #39 2014-10-11 09:29:00 +11:00
Sebastian McKenzie
35522c2ef3 static method class super references - fixes #40 2014-10-11 08:58:54 +11:00
Sebastian McKenzie
58da989164 fix super constructor call - fixes #34 2014-10-10 20:37:15 +11:00
Sebastian McKenzie
db490b4be7 fix getSpecifierName 2014-10-10 16:38:22 +11:00
Sebastian McKenzie
5534f99a96 add comments to display what module syntax each part handles 2014-10-10 16:05:41 +11:00
Sebastian McKenzie
fb67ab9b5d make super behaviour more spec compliant - fixes #32 2014-10-10 15:49:28 +11:00
Sebastian McKenzie
35bb0bc71d inherit super class static properties - fixes #31 2014-10-10 15:07:55 +11:00
Sebastian McKenzie
76f1abe5b0 remove old escodegen hack 2014-10-10 15:07:10 +11:00
Sebastian McKenzie
8d74a4d925 hoist FunctionDeclaration exports to top, possible fix for #30 2014-10-10 14:38:46 +11:00
Sebastian McKenzie
a484ea6003 remove traverse.replace and let traverse deal with it 2014-10-10 14:37:23 +11:00
Sebastian McKenzie
3e34bbe722 support static property on ClassMethods - fixes #28 2014-10-10 13:57:08 +11:00
Sebastian McKenzie
3cb8866fcc copy rest to class constructor - fixes #29 2014-10-10 13:51:13 +11:00
Sebastian McKenzie
9c5262baab support for non-Identifier/MemberExpression class super 2014-10-10 10:57:35 +11:00
Sebastian McKenzie
d511fc8094 add more reliable source-map tests 2014-10-10 09:15:24 +11:00
Sebastian McKenzie
5dec694e50 fix linting errors 2014-10-10 00:51:26 +11:00
Sebastian McKenzie
6ec00f6679 remove old requires 2014-10-10 00:49:47 +11:00
Sebastian McKenzie
98ab869af8 switch from escodegen to recast which is slower but far superior 2014-10-10 00:47:39 +11:00
Sebastian McKenzie
a1bf8ab788 migrate to improved module syntax - fixes #25 2014-10-09 23:16:55 +11:00
Sebastian McKenzie
fd2187b37d ensure BlockStatement when we're going to be pushing nodes 2014-10-09 22:58:36 +11:00
Sebastian McKenzie
83487f22a7 support destructuring in For*Statements 2014-10-09 22:41:12 +11:00
Sebastian McKenzie
4df2333938 support destructuring in AssignmentStatement and ForOf loops 2014-10-09 22:26:23 +11:00
Sebastian McKenzie
b6e533ec5d handle ReturnStatements in block binding - closes #24 2014-10-09 20:19:22 +11:00
Sebastian McKenzie
14dcdc0d4a check whitelist and blacklist for valid transformer names 2014-10-09 18:56:48 +11:00
Sebastian McKenzie
e7ef64a5ad fix es6 visitor keys 2014-10-09 18:56:24 +11:00
Sebastian McKenzie
439b378ebf add browser build - closes #17 2014-10-09 15:24:57 +11:00
Sebastian McKenzie
2a2b2c427a more specific require for regexpu to prevent unneccesary loading 2014-10-09 15:24:09 +11:00
Sebastian McKenzie
b59168832c support tagged template literals - closes #16 2014-10-09 14:35:46 +11:00
Sebastian McKenzie
21f039e775 add support for unicode regexes - closes #11 2014-10-09 14:24:04 +11:00
Sebastian McKenzie
0664ccff98 add support for member expression super classes - closes #22 2014-10-09 14:03:19 +11:00
Sebastian McKenzie
7ee8f8ff3d support destructuring in parameter lists - closes #19 2014-10-09 13:52:40 +11:00