531 Commits

Author SHA1 Message Date
Sebastian McKenzie
5c514bfa75 Merge pull request #2608 from amasad/compact-remove-semi
No need for semicolons at the end of the block in compact mode
2015-10-28 00:14:28 +00:00
Amjad Masad
9011dcbfeb No need for semicolons at the end of the block in compact mode 2015-10-27 17:01:09 -07:00
Sebastian McKenzie
86b4f0dbe8 Merge pull request #2606 from amasad/for-in-edge-case
Special case paren printing in for-loop init node
2015-10-27 23:32:55 +00:00
Amjad Masad
84d80df181 It's safe not to parenthesize SequenceExpressions in ReturnStatements 2015-10-27 16:28:19 -07:00
Amjad Masad
50289bd2b0 whitespace 2015-10-27 16:11:37 -07:00
Amjad Masad
6caaf68024 Special case paren printing in for-loop init node
The printer doesn't have ancestry information so we have to set a flag before printing for's `node.init`.
We also need to make sure we're not printing extra parens so we check `node.needsParens` before adding them.
2015-10-27 16:04:46 -07:00
Sebastian McKenzie
332bde6a0d v5.8.29 2015-10-24 17:26:54 +01:00
Sebastian McKenzie
37604bd572 v5.8.27 2015-10-23 17:54:03 +01:00
Sebastian McKenzie
7c3f0f98f5 remove faulty tests 2015-10-23 17:52:21 +01:00
Sebastian McKenzie
0b71625440 sync babel 5.x with 6.0 scope/traversal fixes - fixes #2570, fixes #2574 2015-10-23 17:51:18 +01:00
Sebastian McKenzie
71031be044 Merge pull request #2405 from jhen0409/patch-1
[es6.tailCall] Move '<arg> = undefined' to the place in front of Continue statement.
2015-10-05 17:26:45 +01:00
Justin Ridgewell
24d766fc57 Replace arrow expression body with block statement
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(...));
}
```
2015-09-30 15:01:35 -04:00
Sebastian McKenzie
369b9fdc4b Merge pull request #2465 from jfsiii/patch-2
Move to exponentiation operator to stage 3
2015-09-30 15:58:19 +01:00
John Schulz
afc687dc5d Bump to exponentiation operator to stage 3
https://github.com/tc39/ecma262#current-proposals
2015-09-30 07:53:16 -07:00
John Schulz
959f607a5a Bump to async functions to stage 3
https://github.com/tc39/ecma262#current-proposals
2015-09-30 07:51:26 -07:00
Sebastian McKenzie
8ab4a5df43 Merge pull request #2403 from alawatthe/double-decimal-point
BinaryIntegerLiterals, OctalIntegerLiterals, HexIntegerLiterals shoul…
2015-09-27 21:24:05 +01:00
Sebastian McKenzie
0230368d23 Merge branch 'patch-5' of https://github.com/mathiasbynens/6to5 into mathiasbynens-patch-5
Conflicts:
	packages/babel/package.json
2015-09-27 21:23:27 +01:00
Jhen
67efa9ee4a [es6.tailCall] Add default-parameters-black-es6-block-scoping test case
refer: https://github.com/babel/babel/issues/2401
2015-09-26 13:24:44 +08:00
Sebastian McKenzie
112c24a3d3 Merge pull request #2427 from michaelficarra/patch-2
advance es7.trailingFunctionCommas to stage 2
2015-09-24 18:27:14 +01:00
Sebastian McKenzie
55989d1c34 Merge pull request #2425 from zertosh/browserify-shrink
Use source-map@^0.5.0 and optimize bundle builds
2015-09-24 15:34:30 +01:00
Sebastian McKenzie
0421224ad0 Merge pull request #2424 from benjamn/patch-5
Upgrade Regenerator to 0.8.40
2015-09-24 15:34:09 +01:00
Mathias Bynens
88f0f8995f Update regexpu to v1.3.0 2015-09-24 13:03:29 +02:00
Andres Suarez
2f13cfa85b optimize bundle builds 2015-09-23 21:58:23 -07:00
Andres Suarez
a5fc32e598 bump source-map to ^0.5.0 2015-09-23 21:05:57 -07:00
Michael Ficarra
7e9a9296ef advance es7.trailingFunctionCommas to stage 2 2015-09-23 16:41:40 -07:00
Ben Newman
e50476b8a4 Upgrade Regenerator to 0.8.40
Most notably, this pegs regenerator to a version of recast (0.10.33) which pegs ast-types to a version (0.8.12) that contains https://github.com/benjamn/ast-types/pull/128, so the Babel client bundle size will be a bit smaller.
2015-09-23 15:01:42 -04:00
Michael Ficarra
46e2a86183 move class properties proposal to stage 1 2015-09-23 11:13:38 -07:00
Ben Newman
5553fddd84 Upgrade Regenerator to v0.8.39
Most notably, this release fixes a bug that made it difficult for Promise implementations to track unhandled rejections when using async functions: 3d8ee21f3a
2015-09-22 11:16:22 -04:00
Jhen
441f5a14f6 [es6.tailCall] Update tests 2015-09-20 04:01:24 +08:00
Jhen
3e0b9b6b4e [es6.tailCall] Move '<arg> = undefined' to the place in front of Continue statement 2015-09-20 04:01:10 +08:00
Alexander Zeilmann
4f57a7b092 BinaryIntegerLiterals, OctalIntegerLiterals, HexIntegerLiterals should not have a decimal point afer them - fixes #2402 2015-09-19 16:20:32 +02:00
Sebastian McKenzie
273b7c5e07 v5.8.25 2015-09-19 01:52:08 +01:00
Sebastian McKenzie
bfd8f41e5e Merge pull request #2372 from hzoo/evaluation-tests
evaluation: tests for UnaryExpression and BinaryExpression
2015-09-19 01:40:43 +01:00
Steven Luscher
c28007c044 Rename the define method to defineType to disambiguate from AMD's “define” 2015-09-16 17:17:11 -07:00
Sebastian McKenzie
37172857b4 Merge pull request #2379 from bradencanderson/defaults_correct_remap
RHS of AssignmentPattern can be a reference to a bound variable
2015-09-14 17:36:22 +01:00
Braden Anderson
9780858722 RHS of AssignmentPattern can be a reference to a bound variable 2015-09-14 17:25:23 +07:00
Henry Zhu
f742806978 evaluation: tests for UnaryExpression and BinaryExpression 2015-09-12 20:11:33 -04:00
Sebastian McKenzie
f18f79cc6d Merge pull request #2293 from andrewimm/master
Allow more certainty when evaluating Logical Expressions
2015-09-12 18:59:48 +01:00
Henry Zhu
95e63fd9c9 evaluation: don't evaluate in and instanceof binary exp - fixes #2355 2015-09-11 00:41:03 -04:00
Sebastian McKenzie
8d422bb69c v5.8.24 2015-09-10 20:13:20 +01:00
Ben Alpert
52fb99a341 Reorder React element properties for consistent hidden class 2015-09-10 01:22:06 -07:00
Ben Alpert
1d0e68f5a1 Include $$typeof on inlined React elements
See https://github.com/facebook/react/pull/4832.
2015-09-10 00:02:09 -07:00
Andrew Imm
a6e0ec8371 Allow more certainty when evaluating Logical Expressions 2015-09-03 08:55:26 -07:00
Henry Zhu
5c58b52d40 evaluation: evaluate typeof UnaryExpression 2015-09-03 09:32:01 -04:00
Sebastian McKenzie
acc801897a Merge pull request #2300 from hzoo/add-more-binary-ops
evaluation: add more binary operators
2015-09-01 15:34:32 +01:00
Daniel Tschinder
ab1dd2c090 Fix typo in code 2015-09-01 16:28:29 +02:00
Henry Zhu
5bb42ed10d evaluation: add more binary operators 2015-09-01 10:14:38 -04:00
Sebastian McKenzie
947ded1563 Merge pull request #2238 from prathamesh-sonpatki/doc-path-context
Document some methods from path/context.js
2015-09-01 04:31:17 +01:00
Sebastian McKenzie
19da69e7b4 Merge pull request #2235 from prathamesh-sonpatki/doc-ensure-callbacks-are-arrays
Document ensureCallbackArrays method from visitors.js
2015-09-01 04:30:36 +01:00
Sebastian McKenzie
442f1173d2 v5.8.23 2015-08-27 16:38:34 -07:00