1546 Commits

Author SHA1 Message Date
Henry Zhu
35ed18f628 Fix invalid codegen for non decimal numeric literals in MemberExpression
Fixes T7156
2016-02-28 20:34:45 -05:00
Chris Cowan
b2aecd4320 Fix arrow style issue 2016-02-26 08:57:34 -08:00
Chris Cowan
f01eaa8e47 Put transform-es2015-duplicate-keys plugin in es2015 preset. 2016-02-25 21:03:03 -08:00
Chris Cowan
4730526bf2 Add transform-es2015-duplicate-keys plugin. 2016-02-25 21:03:03 -08:00
Henry Zhu
b8cdd6e28c Merge pull request #3365 from jridgewell/replace-implicit-arrow-with-block
Replace arrow expression body with block statement
2016-02-25 22:02:31 -05:00
Henry Zhu
bf05b1b3bc Merge pull request #3368 from loganfsmyth/es3-transform-fixes
Fix the module plugin to properly requeue so the ES3 transforms can work
2016-02-25 21:57:23 -05:00
Honza Široký
33d70df5b9 Adds repository field to babel-plugin-transform-regenerator 2016-02-24 01:07:33 +01:00
Tieme van Veen
84a5d863b0 fix babel-plugin-transform-proto-to-assign readme url 2016-02-23 17:23:05 +01:00
Logan Smyth
0a0407be41 Re-queue remapped imports so they are re-traversed - fixes T6863 2016-02-22 22:54:28 -08:00
Logan Smyth
01003b954a Re-queue nodes inserted with .replaceWith and centralize logic - fixes T2817 2016-02-22 22:44:03 -08:00
Henry Zhu
54a064b970 Merge pull request #3362 from hzoo/err-babel-5-plugin
Show a better error when trying to use a babel 5 plugin
2016-02-22 19:40:52 -05:00
Logan Smyth
98c0c08808 Merge pull request #3355 from loganfsmyth/babylon-browserifiable
Clean up babylon bundle to allow it to be re-bundled - fixes T6930
2016-02-22 08:50:06 -08:00
Henry Zhu
ab7533ed6c Merge pull request #3358 from gzzhanghao/master
Fix generator with empty token list and force a newline for line comments in concise mode
2016-02-20 22:33:20 -05:00
Justin Ridgewell
de1431e8c6 Replace arrow expression body with block statement
Original PR: https://github.com/babel/babel/pull/2469. Seems this got
lost in the v6 changes.

- - -

Without this, the only way to replace the arrow function is to either
manually override its `node.body`, or duplicate the arrow:

```js
// Old
ArrowFunctionExpression: function (node) {
  node.body = t.blockStatement(...);
  // Or
  return t.ArrowFunctionExpression(
    node.params,
    t.blockStatement(...),
    node.async
  );
}

// New
ArrowFunctionExpression: function() {
  this.get("body").replaceWith(t.blockStatement(...));
}
```
2016-02-20 04:36:40 -05:00
Jesse McCarthy
3b8c5b7620 Merge pull request #3249 from jmm/rest-assign-el
Fix assignment to rest param element AST error.

Fix T6932.
2016-02-19 08:47:17 -05:00
Henry Zhu
6425c47537 Show a better error when trying to use a babel 5 plugin 2016-02-17 20:31:49 -05:00
Henry Zhu
26a3fdc3df Merge pull request #3336 from erikdesjardins/async-arrow-rest
Fix T3077 (incorrect _arguments for async arrow functions with rest params)
2016-02-17 15:26:58 -05:00
Jason
28ca3f7f3a [generator] bug fix
- Fix Whitespace with empty token list
- Force a newline for line comments in concise mode
2016-02-17 13:01:54 +08:00
Logan Smyth
39c9066e40 Merge pull request #3359 from loganfsmyth/context-queueing-order
Queue regeneratorRuntime so it is transformed before Program#exit
2016-02-15 21:23:45 -08:00
Denis Pushkarev
e6e0171db3 [core-js] temporary disable features, which can break "old runtime and new transform-runtime" case 2016-02-16 00:30:54 +06:00
Sebastian McKenzie
9bd15508a2 suppress final lint error? 2016-02-15 00:20:19 +00:00
Sebastian McKenzie
d1f7eab060 noflow one more file 2016-02-15 00:00:44 +00:00
Sebastian McKenzie
b5bcd64120 noflow some files 2016-02-14 23:58:37 +00:00
Sebastian McKenzie
93e5c0e64b Merge pull request #3361 from babel/klint
Switch to klint, fix some lint rules
2016-02-14 23:26:30 +00:00
Sebastian McKenzie
5b89849f43 Switch to klint, fix some lint rules 2016-02-14 23:25:14 +00:00
Sebastian McKenzie
a1b8a765f7 Merge pull request #3340 from zloirock/update-core-js
update core-js
2016-02-14 23:13:48 +00:00
Henry Zhu
ef6b54c1d9 Merge pull request #3356 from loganfsmyth/operator-parse-error
Properly fail to parse >== and <== - fixes T2921
2016-02-14 16:15:31 -05:00
Logan Smyth
96a6d9f92e Queue regeneratorRuntime so it is transformed before Program#exit - fixes T7041 2016-02-13 22:56:03 -08:00
Jordan Klassen
89b20c6562 Fix typo: sorucemap -> sourcemap 2016-02-13 12:35:45 -08:00
Logan Smyth
ce1423d560 Properly fail to parse >== and <== - fixes T2921 2016-02-13 10:08:05 -08:00
Logan Smyth
9e383b09b9 Clean up babylon bundle to allow it to be re-bundled - fixes T6930 2016-02-12 22:48:00 -08:00
Amjad Masad
e0a7271ace Merge pull request #3346 from schmod/T7091
rename scope bindings during block scope transform
2016-02-12 12:12:39 -08:00
Henry Zhu
b1bb39e733 v6.5.2 2016-02-12 11:29:58 -05:00
Erik Desjardins
a3bca783dd Transformed generators for async function expressions should not be shadow functions 2016-02-12 11:25:11 -05:00
Henry Zhu
5d98f3a401 Merge pull request #3342 from rstacruz/patch-1
babel-register: update README.md
2016-02-12 10:59:22 -05:00
Henry Zhu
971545000a Merge pull request #3345 from babel/readme-with-options
Docs: update plugin readmes with options
2016-02-12 10:58:04 -05:00
Logan Smyth
e9423e82bc Merge pull request #3348 from loganfsmyth/fix-option-loading
Merge config options into list after babelrc options - fixes T7079
2016-02-12 08:44:59 -07:00
Henry Zhu
8568198238 Add class properties test with a generator method that results in a parse error 2016-02-11 13:03:36 -05:00
Logan Smyth
ff2bf2642b Merge pull request #3326 from eetulatja/master
Fix spread to work with super method calls
2016-02-10 22:49:02 -07:00
Logan Smyth
b53864c569 Merge pull request #3334 from loganfsmyth/bind-callee-ref
Check BindExpression callee for reference - fixes T6984
2016-02-10 22:42:50 -07:00
Logan Smyth
18fd06cf4a Merge pull request #3332 from loganfsmyth/revert-prop-semi
Revert to standard ASI behavior for class properties
2016-02-10 22:40:44 -07:00
Logan Smyth
8c910d6a4c Merge config options into list after babelrc options - fixes T7079 2016-02-10 21:18:27 -08:00
Henry Zhu
5a271b091a Docs: update plugin readmes with options [ci skip] 2016-02-10 18:12:58 -05:00
Andrew Schmadel
307d5c5a0d rename scope bindings during block scope transform 2016-02-10 11:44:16 -05:00
Erik
27a132a9cb Add test for T3077 (Incorrect rest operator behavior for async arrow functions) 2016-02-09 13:13:28 -05:00
Rico Sta. Cruz
5a312e69be babel-register: update README.md 2016-02-09 18:48:25 +08:00
Denis Pushkarev
e50be68400 add special case for legacy modules to the runtime build script 2016-02-09 15:28:17 +06:00
Denis Pushkarev
79214b3b05 update core-js 2016-02-09 07:31:02 +06:00
Logan Smyth
2f0c646364 Don't preferGlobal on the babel package. 2016-02-08 08:33:23 -08:00
Sebastian McKenzie
a0fdb77413 v6.5.1 2016-02-08 02:18:10 +00:00