Sebastian McKenzie
33cd9eeafd
don't hoist regenerator variable declarations in system module formatter
2015-01-23 23:46:43 +11:00
Sebastian McKenzie
86b6904e77
fix esnext tests to reflect new super behaviour
2015-01-23 23:05:24 +11:00
Sebastian McKenzie
5f8f9e35d7
better categorisation of transformers
2015-01-23 23:03:41 +11:00
Sebastian McKenzie
063fec0ca6
better categorisation of transformers
2015-01-23 23:02:40 +11:00
Sebastian McKenzie
bff150f69d
fix filenameRelative name and remove amdModuleIds
2015-01-23 09:39:42 +11:00
Sebastian McKenzie
5815b17dee
Merge branch 'master' into 3.0.0
2015-01-23 07:12:28 +11:00
Assaf Arkin
4fe6ad43c1
Added test case for issue #564
2015-01-22 10:19:45 -08:00
Sebastian McKenzie
115509653f
remove strict module transformers
2015-01-22 18:39:09 +11:00
Sebastian McKenzie
c4fb5a5e40
more compact async to generator helper
2015-01-22 17:19:22 +11:00
Sebastian McKenzie
9ed8e4a35b
remove names from optional async tests
2015-01-22 10:12:11 +11:00
Sebastian McKenzie
81ff635c60
fix tests to reflect new super behaviour
2015-01-22 08:07:59 +11:00
Sebastian McKenzie
f2a432531e
make bare super call in non-constructors illegal
2015-01-22 07:52:31 +11:00
Sebastian McKenzie
da6c2b8d6a
add illegal top level this transformer - fixes #562
2015-01-22 07:44:36 +11:00
Sebastian McKenzie
43856136d5
update tests
2015-01-22 07:37:45 +11:00
Sebastian McKenzie
48cebd5e30
rename es6.generators to regenerator
2015-01-22 01:47:07 +11:00
Sebastian McKenzie
2ab4a3d362
update tests to reflect new uid behaviour
2015-01-22 01:37:50 +11:00
Sebastian McKenzie
cfd95a1398
only require imports that are necessary in selfContained
2015-01-22 01:37:28 +11:00
Sebastian McKenzie
ac373a9e1c
use scope for uid registry instead of a global registry
2015-01-22 00:27:45 +11:00
Sebastian McKenzie
1e217c745b
Merge branch 'system-tests' of https://github.com/guybedford/6to5 into guybedford-system-tests
2015-01-21 23:59:32 +11:00
Sebastian McKenzie
546a44d1d7
autoindentation - fixes #467
2015-01-21 23:33:57 +11:00
Sebastian McKenzie
ac891bebaa
nicer unknown transformer message
2015-01-21 23:33:30 +11:00
Sebastian McKenzie
28fe45bd1d
namespace all transformer keys with their type
2015-01-21 23:12:57 +11:00
Sebastian McKenzie
f312026c23
move transformers into their corresponding type folder
2015-01-21 23:04:31 +11:00
guybedford
8023788305
add generator and variable binding tests
2015-01-21 13:58:49 +02:00
Sebastian McKenzie
c51f8c48b6
rename let scoping transformer to block scoping
2015-01-21 22:40:17 +11:00
Sebastian McKenzie
cfd028288f
Merge branch 'master' into 3.0.0
...
Conflicts:
CHANGELOG.md
lib/6to5/transformation/transform.js
2015-01-21 17:56:34 +11:00
Sebastian McKenzie
3c258c4716
add proper ordering to function param logic - fixes #549
2015-01-21 10:17:52 +11:00
Sebastian McKenzie
e46f42872a
add array comprehension collision test #538
2015-01-20 16:52:11 +11:00
Sebastian McKenzie
4790e4068a
add for collision test #538
2015-01-20 16:52:00 +11:00
Sebastian McKenzie
d911bdaf63
add AssignmentPattern support to scope tracking - fixes #537
2015-01-20 08:56:14 +11:00
Sebastian McKenzie
1859226e76
remove runtime test
2015-01-20 02:36:42 +11:00
Sebastian McKenzie
ff12a996de
remove ALL check from regenerator tests
2015-01-20 02:30:49 +11:00
Sebastian McKenzie
33d2463c65
remove old runtime tests
2015-01-20 01:42:31 +11:00
Sebastian McKenzie
9f41d6231e
Merge branch 'scoped-es6-runtime' of https://github.com/AluisioASG/6to5 into AluisioASG-scoped-es6-runtime
2015-01-20 01:34:43 +11:00
Aluísio Augusto Silva Gonçalves
043bf13d24
Revert moving _blockHoist after regenerator
...
This reverts commits 81bec3e5c4e559cacadbc07dd24aac8d5099caa6 and
157f5c3304e8b85be8ada99a634393ea22e45045.
2015-01-19 12:24:54 -02:00
Aluísio Augusto Silva Gonçalves
3f96cf3963
Rename 6to5-runtime's helpers module to 'helpers'
2015-01-19 12:24:45 -02:00
Sebastian McKenzie
f322252c36
add optional undeclared variable check transformer
2015-01-20 00:17:22 +11:00
Aluísio Augusto Silva Gonçalves
157f5c3304
Remove regenerator edge case from selfContained test
...
Right now exporting a generator doesn't work because we hoist the
export assignment before the function expression assignment. This
will be dealt with at another time as it is not specific to this
transformer.
2015-01-19 10:54:33 -02:00
Sebastian McKenzie
4a1addc558
better whitespace for VariableDeclarations
2015-01-19 22:09:05 +11:00
Aluísio Augusto Silva Gonçalves
e2bf61379f
Add full-blown test for the selfContained transformer
2015-01-18 23:10:26 -02:00
Aluísio Augusto Silva Gonçalves
02019d4d8f
Drop unnecessary dynamic import redeclaration in AMD
...
Instead of assigning the import a name and them declaring a new
variabled referencing that name, output the import already with
the destination name, since we know there must be no collisions
because these IDs are also generated.
2015-01-18 21:18:25 -02:00
Aluísio Augusto Silva Gonçalves
c81cc5cda0
Unify coreAliasing, externalRuntime and externalRegenerator
...
Merge all three transformers into the `selfContained` transformer,
as discussed in Gitter. Name may not be final.
2015-01-18 21:15:30 -02:00
Aluísio Augusto Silva Gonçalves
8d288c01ca
Import ES6 functions and helpers from 6to5-runtime
...
The new `6to5-runtime` packs core-js, 6to5's helpers and
the Regenerator runtime, and we're moving `coreAliasing`,
`externalRuntime` and `externalRegenerator` to use it
instead of forcing the user to depend on these packages
directly.
2015-01-18 20:39:35 -02:00
Aluísio Augusto Silva Gonçalves
e2f4ca106e
Merge branch 'external-regenerator-runtime' into scoped-es6-runtime
2015-01-18 20:02:48 -02:00
Sebastian McKenzie
16b7ff972c
split up tdz into an optional transformer until it has a better implementation - fixes #527
2015-01-19 08:54:04 +11:00
Aluísio Augusto Silva Gonçalves
7e6da1d368
Add tests for the externalRegenerator transformer
2015-01-18 17:33:57 -02:00
Aluísio Augusto Silva Gonçalves
e985d8b25d
Don't use interopRequire for dynamic imports
...
They don't need it at all and this also allows use of `externalRuntime`
without fear of the runtime ending up being loaded after it's used.
2015-01-18 17:31:55 -02:00
Aluísio Augusto Silva Gonçalves
84ee0efe32
Add test for externalRuntime with AMD modules
2015-01-18 17:31:54 -02:00
Aluísio Augusto Silva Gonçalves
e9a024e58a
Add simple test for externalRuntime transformer
...
Just import a module namespace and see what happens.
2015-01-18 17:31:53 -02:00
Sebastian McKenzie
7c4701716c
implement block scoping TDZ
2015-01-18 21:26:02 +11:00