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
Sebastian McKenzie
9c9a9b0325
make regenerator test future-proof
2015-01-18 18:51:11 +11:00
Sebastian McKenzie
d360bd5bb7
update misc tests
2015-01-18 18:23:27 +11:00
Sebastian McKenzie
436c488ee3
revamp let scoping transformer - closes #510
2015-01-18 18:22:37 +11:00
Sebastian McKenzie
93d99077e5
Revert "add loose mode to spread and destructuring"
...
This reverts commit 95d9f596687cd3fb4ce4d78dc6c7606128b74209.
2015-01-18 12:52:16 +11:00
Sebastian McKenzie
320c78b815
make let scoping collision detection much more reliable
2015-01-18 12:15:50 +11:00
Sebastian McKenzie
a0f605bbab
add way to automatically write expected tests
2015-01-18 12:12:58 +11:00
Sebastian McKenzie
95d9f59668
add loose mode to spread and destructuring
2015-01-18 12:12:12 +11:00
Sebastian McKenzie
b54800234f
clean up conditional assignment operator transformers
2015-01-17 22:56:49 +11:00
Sebastian McKenzie
ecd85f53b4
Merge pull request #516 from jridgewell/mallot
...
Playground Proposal: Mallet operator
2015-01-17 21:59:23 +11:00
Sebastian McKenzie
eb9cd95d5a
update for head tests
2015-01-17 17:54:04 +11:00
Justin Ridgewell
ac5a6da1fa
Use all falsey values
2015-01-16 19:25:28 -05:00
Justin Ridgewell
616640a128
Playground Proposal: Mallet operator
...
The mallet operator is similar to the current memoization operator,
except it can be used outside of just objects.
In Ruby, it’s almost the same as `a = a || b`. Note that only `nil` and
`false` are falsey in Ruby. I’ve defined it as `== null`, though that
could be changed to any JS falsey value.
2015-01-16 18:57:15 -05:00
Sebastian McKenzie
51f6cfddca
remove instanbul inclusion
2015-01-16 02:47:20 +11:00
Lee Byron
9624663e60
Improve performance of rest parameter.
...
Rather than initing an empty array and filling, create an array of the correct size up-front. Minor gain on chromium, but considerably (~5x) faster in spidermonkey/firefox.
2015-01-15 08:41:53 -05:00
Sebastian McKenzie
88eacecd72
clarify traceur ignore tests
2015-01-15 23:08:06 +11:00
Shinnosuke Watanabe
db5750643a
use output-file-sync instead of mkdirp
...
https://github.com/shinnn/output-file-sync
2015-01-15 18:29:40 +09:00
Sebastian McKenzie
55054e45da
Revert "Improve performance of rest parameter."
...
This reverts commit e5463cc2a97cafbf9d35656038f19b45dd75ffce.
2015-01-15 19:34:33 +11:00
Lee Byron
e5463cc2a9
Improve performance of rest parameter.
...
Rather than initing an empty array and filling, create an array of the correct size up-front. Minor gain on chromium, but considerably (~5x) faster in spidermonkey/firefox.
2015-01-14 19:08:14 -05:00
Sebastian McKenzie
b60eca0a76
better typeof symbol transformer
2015-01-15 02:24:32 +11:00
Sebastian McKenzie
44f06c0b4c
instance and static class method names
2015-01-15 02:24:23 +11:00
Sebastian McKenzie
07ddfbeb5d
remove pointless prototypeProperties helper call
2015-01-15 01:20:06 +11:00
Sebastian McKenzie
6b836de306
add #480 test
2015-01-14 07:56:45 +11:00
Sebastian McKenzie
afd3af834d
add loose option to computed property names
2015-01-14 00:35:45 +11:00