7391 Commits

Author SHA1 Message Date
Amjad Masad
95c93dd22b Method names should not be bound to body
As an artificat of compiling methods to named function expressions the
function name is being considered a "local" binding in the function
body. This means that we will throw errors anytime someone would want to
create a new local binding with the same name.

This is solved by assigning a symbol to function Identifiers that
indicates that they should not be considered local bindings.
2016-01-17 13:19:37 -08:00
Chris Cowan
af363c8da5 Make babylon ignore duplicate plugins. 2016-01-15 19:29:21 -08:00
Chris Cowan
aa9b3ec2a8 Make Babylon correctly handle "flow" being present multiple times in plugins. 2016-01-15 19:00:38 -08:00
Henry Zhu
9d0a05ecde Merge pull request #3268 from hzoo/t2892-test
Add test for T2892
2016-01-14 18:40:30 -05:00
Henry Zhu
1e48287654 remove bug fix heading 2016-01-14 18:04:01 -05:00
Henry Zhu
10105bb077 Add test for 2892 2016-01-14 17:23:20 -05:00
Henry Zhu
ba2bf16282 6.4.4 changelog 2016-01-14 17:17:31 -05:00
Henry Zhu
8644e5f27c v6.4.4 2016-01-14 17:05:41 -05:00
Henry Zhu
4638f4db4d republish transform-regenerator 2016-01-14 17:03:39 -05:00
Jordan Klassen
0c1eddfd52 Add documentation comment for visitors.explode 2016-01-14 13:41:19 -08:00
Jesse McCarthy
19937573a6 Fix assignment to rest param element. 2016-01-14 13:21:47 -05:00
Jesse McCarthy
49728be8b6 Test for no-opt of assign to rest param element.
That is, do not attempt to optimize assignments as opposed to reads.

(Failing.)
2016-01-14 13:21:40 -05:00
Amjad Masad
3f2a445c9a v6.4.3 2016-01-13 21:56:22 -08:00
Amjad Masad
1e58139179 changelog 2016-01-13 21:53:43 -08:00
Amjad Masad
d3242e8513 Merge pull request #3261 from jmm/array-expr-builder-default
Add ArrayExpression.elements.default
2016-01-13 21:23:03 -08:00
Amjad Masad
ee1e16f76d Merge pull request #3162 from loganfsmyth/requeue-generators-6676
Requeue generators for re-traversal so we pick up regeneratorRuntime - fixes T6676
2016-01-13 21:22:03 -08:00
Jesse McCarthy
857675c99c Add fixtures to exercise shadow conditional. 2016-01-13 17:37:29 -05:00
Jesse McCarthy
41066f55ea Add fixtures for deopt due to arguments. 2016-01-13 17:37:23 -05:00
Jesse McCarthy
b17965ab8b Improve comments. 2016-01-13 17:24:06 -05:00
Jesse McCarthy
059d7123db Remove unnecessary else. 2016-01-13 17:24:06 -05:00
Jesse McCarthy
e4044062c3 Remove unnecessary length check & nesting. 2016-01-13 17:24:06 -05:00
Jesse McCarthy
4c69f1cda5 Replace func expr with arrow. 2016-01-13 17:24:06 -05:00
Jesse McCarthy
afd98ebd2a Remove unnecessary literal return value. 2016-01-13 17:24:06 -05:00
Jesse McCarthy
bcfa58a6a2 Remove unnecessary intermediate var. 2016-01-13 17:24:06 -05:00
horpto
5ac022ab9b 4 -> 2 spaces tab size 2016-01-13 15:37:20 +05:00
Amjad Masad
add96d626d Double quotes 2016-01-12 17:30:53 -08:00
Amjad Masad
0d9459dbb6 Fix minified labeledStatement printing
Unary expressions with alphabetic operators like 'void' were being
squished next to the statement.
2016-01-12 17:28:46 -08:00
Amjad Masad
b7aa49d9f5 Merge pull request #3250 from babel/symbol-rename
[T6933] Rename any shadowing Symbol binding
2016-01-12 17:02:16 -08:00
Ben Newman
e1ec9ef985 Make require declarations inherit ._blockHoist values from imports.
This commit fixes the failing test I introduced in pull request #3118.
2016-01-12 18:01:31 -05:00
Ben Newman
4ca25ac7a9 Add test of import hoisting that fails with the runtime transform. 2016-01-12 18:01:31 -05:00
Jesse McCarthy
0f85e79f67 Add ArrayExpression.elements.default. 2016-01-12 11:33:08 -05:00
Amjad Masad
6a3b3dc3e9 Merge pull request #3252 from caseywebdev/fix-amd-umd-use-strict
Fix T2929, T6796, stop leaking directives
2016-01-11 17:34:51 -08:00
Amjad Masad
bad98a1056 Merge pull request #3232 from jonathanong/babel-register-cache-mkdirp
babel register cache: make sure the cache file's directory exists
2016-01-11 17:34:08 -08:00
James Kyle
dfc4113a57 Merge pull request #3259 from mathiasbynens/use-regexpu-core
Use only `regexpu-core` instead of all of `regexpu`
2016-01-11 10:57:13 -08:00
Mathias Bynens
430e80fe0e Use only regexpu-core instead of all of regexpu
Ref. https://github.com/mathiasbynens/regexpu/issues/24.
2016-01-11 19:32:19 +01:00
horpto
fa9f8ea4be Fix for deeply nested async arrows 2016-01-11 04:37:16 +05:00
horpto
f2fdc74d1b [2765] transform-async-to-generator doesn't work for this inside arrow
function
2016-01-10 21:52:04 +05:00
Sebastian McKenzie
69b20a3054 label 4.2.0 breaking changes as accidental 2016-01-09 19:06:18 +01:00
Sebastian McKenzie
7a3d2865c1 package renames aren't breaking changes 2016-01-09 19:05:29 +01:00
Sebastian McKenzie
21f6f52161 Merge pull request #3255 from ForbesLindesay/patch-1
Move "throw parse error if class properties do not have a semicolon" to breaking changes
2016-01-09 19:04:37 +01:00
Forbes Lindesay
d9c2090d23 Move "throw parse error if class properties do not have a semicolon" to breaking changes
This broke my project, because I hadn't added semi-colons in all places.
2016-01-09 17:54:41 +00:00
Henry Zhu
0dd640d0dc Merge pull request #3254 from ForbesLindesay/patch-1
Changelog: Move "remove `StringLiteral`" in `babel-types` into Breaking Changes
2016-01-09 12:52:56 -05:00
Forbes Lindesay
a77bd91013 Move "remove StringLiteral" in babel-types into Breaking Changes 2016-01-09 15:34:50 +00:00
Casey Foster
c7c4d7f5fd Fix T2929, T6796, stop leaking directives 2016-01-08 15:29:42 -06:00
James Kyle
fb0977b4b3 Merge pull request #3251 from ForbesLindesay/document-babel-generator-opts
Document options for babel-generator
2016-01-08 09:33:13 -08:00
ForbesLindesay
bd7b202866 Document options for babel-generator 2016-01-08 14:38:37 +00:00
Amjad Masad
1d4d0c0175 [T6933] Rename any shadowing Symbol binding 2016-01-07 21:02:59 -08:00
Henry Zhu
917436ca24 add 6.4.2 changelog and some dates 2016-01-06 21:53:30 -05:00
Henry Zhu
7af1bd4354 v6.4.2 2016-01-06 21:26:43 -05:00
Henry Zhu
a156dd2918 Merge pull request #3247 from babel/await-paren
Parenthesize await/yield expression in binary expr
2016-01-06 21:18:08 -05:00