Sebastian McKenzie
9fd1ec0596
more reliable toValidIdentifier checking, including reserved words
2015-01-05 10:22:06 +11:00
Sebastian McKenzie
90ce4e93ed
don't break let reference checking on loops in let scoping
2015-01-05 10:21:50 +11:00
Sebastian McKenzie
cf7b9234c1
make typeofSymbol transformer optional
2015-01-05 10:21:32 +11:00
Sebastian McKenzie
f85eeeb93c
fix blockHoist and declarations transformers unneccesarily unshifting use strict statements
2015-01-05 10:21:24 +11:00
Sebastian McKenzie
45d0eea842
fix native type constructor spread - closes #373
2015-01-05 10:20:36 +11:00
Sebastian McKenzie
b0c9d3daa4
Merge branch 'master' into traceur
2015-01-05 10:19:41 +11:00
James Kyle
3b4c9c415e
Make parent constructor check explicit when extending from null - fixes #386
2015-01-04 13:45:13 -08:00
Sebastian McKenzie
4c2b85deec
better NewExpression paren insertion
2015-01-05 01:06:41 +11:00
Sebastian McKenzie
108784db20
add typeof and interop-require-wildcard helpers
2015-01-05 01:06:28 +11:00
Sebastian McKenzie
2b333de81f
add basic support for assignment patterns
2015-01-05 00:07:50 +11:00
Sebastian McKenzie
b81f824b7e
normalise wildcard import into a default object
2015-01-05 00:07:22 +11:00
Sebastian McKenzie
9bfb8c440a
add optional typeof symbol transformer
2015-01-05 00:06:57 +11:00
Sebastian McKenzie
9a6c13a6a4
Merge branch 'esnext'
...
Conflicts:
package.json
2015-01-05 00:03:53 +11:00
Lars Kappert
17ce21509d
Move exports identifier from UMD template to commonArgs
2015-01-04 12:59:25 +01:00
Lars Kappert
a4c8895dc3
Conditionally pass "module" arg to AMD/UMD factory
2015-01-04 12:58:52 +01:00
Lars Kappert
af4009694a
Simplify AMD export declaration fn to re-use CommonJS one
2015-01-04 12:53:17 +01:00
Lars Kappert
941a8cc5ea
Remove unused templates
2015-01-04 12:51:34 +01:00
Lars Kappert
7ac98c1532
Add custom export declaration fn for AMD modules
2015-01-04 11:46:28 +01:00
Sebastian McKenzie
38e6abec02
Merge branch 'master' into traceur
2015-01-04 20:23:37 +11:00
Sebastian McKenzie
1abef2c1e2
more intelligent parens wrapping of no line terminator expressions - fixes #376 , reference #349
2015-01-04 20:22:24 +11:00
Sebastian McKenzie
2587694d44
Merge branch 'master' into traceur
...
Conflicts:
package.json
2015-01-04 19:52:52 +11:00
Sebastian McKenzie
88e542634f
fix linting errors
2015-01-04 19:45:18 +11:00
Sebastian McKenzie
35608d497e
make comprehension for-of loop a let
2015-01-04 19:42:25 +11:00
Sebastian McKenzie
b5a78355c4
add initProps to single call expression in computed property names - fixes #378
2015-01-04 19:42:16 +11:00
Sebastian McKenzie
18813f26bb
Merge branch 'master' into esnext
2015-01-04 15:32:41 +11:00
Sebastian McKenzie
ccabb91f69
add back deleted object-define-properties-closure template
2015-01-04 15:30:59 +11:00
Sebastian McKenzie
35fda899a8
remove spec-no-duplicate-properties transformer
2015-01-04 15:30:40 +11:00
Sebastian McKenzie
931a80f5b3
rename "declarations" to the more sane "helpers"
2015-01-04 13:34:56 +11:00
Sebastian McKenzie
cbcad22d81
update default parameters transformer to use var a = arguments[0] === undefined ? 1 : arguments[0]; instead of if (a === undefined) a = 1;
2015-01-04 08:35:14 +11:00
Sebastian McKenzie
a645ae0583
contextLiteral fallback in es6-spread transformer
2015-01-04 07:59:56 +11:00
Sebastian McKenzie
7f4efecb7d
support for CallExpression in Scope.prototype.generateUidBasedOnNode
2015-01-04 07:59:43 +11:00
Sebastian McKenzie
55123be7d7
use t.toComputedKey in computed property name transformer
2015-01-04 07:38:49 +11:00
Sebastian McKenzie
324a0b408a
add optional protoToAssign transformer
2015-01-04 07:38:36 +11:00
Sebastian McKenzie
d945379b5b
remove isDynamic checks and always execute those expressions **once**
2015-01-03 21:48:06 +11:00
Sebastian McKenzie
5a622ac9c7
update traversal api in optional-bluebird-coroutines transformer
2015-01-03 20:11:21 +11:00
Sebastian McKenzie
0e9eac610b
rename es5-property-methods-assignment to es6-property-method-assignment and add function ids to object methods and remap them if they contain a reference to themselves - fixes #308
2015-01-03 20:11:00 +11:00
Sebastian McKenzie
71132c3538
add types.toComputedPropertyKey helper
2015-01-03 20:08:39 +11:00
Sebastian McKenzie
d20ab0eb05
rename traverse stop method to skip and add a stop method that actually breaks the current traversal
2015-01-03 20:08:31 +11:00
Sebastian McKenzie
340a4dd1f2
fix code styling #370
2015-01-03 07:35:45 +11:00
Hugh Kennedy
5a01beaa1f
Make require("6to5/register") work with browserify
...
Previously, you'd have to create a separate file for using 6to5
with both node and browserify, as the latter wasn't able to properly
handle loading 6to5's dependency tree and would crash on attempting
to do so.
This change instructs browserify to use "register-browser.js" in place
of "register.js". "register-browser.js" still loads the 6to5 polyfill,
but is otherwise ignored.
2015-01-02 21:30:40 +01:00
Sebastian McKenzie
d43d5ff409
move coreAliasing and undefinedToVoid transformers down
2015-01-03 05:24:43 +11:00
Sebastian McKenzie
339bf82481
avoid printing comments if they've already been output - fixes #365
2015-01-02 22:22:01 +11:00
Sebastian McKenzie
8269e1488b
fix incorrect scripts reference in browser
2015-01-02 19:23:50 +11:00
Sebastian McKenzie
5ec19f23c3
add test skeleton for types and add jsdoc comments to types
2015-01-02 19:20:05 +11:00
Sebastian McKenzie
ba48b66458
add types.appendToMemberExpression and types.prependToMemberExpression helpers
2015-01-02 16:46:58 +11:00
Sebastian McKenzie
6e8c73f65f
fix incorrect member expression properties
2015-01-02 16:39:35 +11:00
Sebastian McKenzie
fbabd193a4
add module type to 6to5 browser
2015-01-02 14:33:18 +11:00
Sebastian McKenzie
1a963ddc06
remove unused variable
2015-01-02 05:19:00 +11:00
Sebastian McKenzie
beb5acea6b
better addImport with good hoisting etc
2015-01-02 05:18:03 +11:00
Sebastian McKenzie
a18177026c
add support for statements in asyncToGenerator and bluebirdCoroutines transformers
2015-01-02 04:58:59 +11:00