1471 Commits

Author SHA1 Message Date
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
Casey Foster
c7c4d7f5fd Fix T2929, T6796, stop leaking directives 2016-01-08 15:29:42 -06: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
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
Amjad Masad
17ea5cd916 Fix failing test 2016-01-06 17:50:17 -08:00
Amjad Masad
a41c486155 Merge pull request #3246 from babel/kpdecker-rest-length-fail
Support expressions in rest arg access
2016-01-06 19:40:49 -06:00
Amjad Masad
feedc527a1 Merge pull request #3244 from hzoo/cp-loc
`babylon`: fix error location for class properties with a missing sem…
2016-01-06 19:39:22 -06:00
Amjad Masad
139503e86f Parenthesize await/yield expression in binary expr 2016-01-06 17:35:39 -08:00
Amjad Masad
59ea034df2 Support expressions in rest arg access
The current implementation assumes a numeric literal although it just
checks the base type.
2016-01-06 17:07:05 -08:00
Amjad Masad
88d57b58a4 Merge branch 'rest-length-fail' of https://github.com/kpdecker/babel into kpdecker-rest-length-fail 2016-01-06 16:46:16 -08:00
Amjad Masad
ada2fdbe4b v6.4.1 2016-01-06 16:27:49 -08:00
Amjad Masad
ec983b276e add assignment expression parentheses test 2016-01-06 16:03:45 -08:00
Amjad Masad
6abee425d3 Revert "babel-types: add Binary alias to AssignmentExpression definition (fixes T6887)"
This was causing problems with parenthesizing assignment expression
This reverts commit b5cf529d6b342b3dd8dd49c50cc9cd5fed4fc5a7.
2016-01-06 15:59:39 -08:00
Henry Zhu
f31099f383 babylon: fix error location for class properties with a missing semicolon 2016-01-06 18:42:26 -05:00
kpdecker
28280be3ed Add failing tests case for 6.4 rest.length issue 2016-01-06 17:34:43 -06:00
Henry Zhu
8cac20d845 v6.4.0 2016-01-06 15:34:12 -05:00
Amjad Masad
e79c625091 Merge pull request #3229 from hzoo/T6913
Add a check for parentheses for AwaitExpressions (fixes T6913)
2016-01-06 14:22:54 -06:00
Sebastian McKenzie
72c091b63a Ensure regenerator option for babel-plugin-transform-runtime doesn't cancel out core-js polyfill 2016-01-06 15:26:00 +00:00
Sebastian McKenzie
b28803c698 Merge pull request #3235 from guybedford/polyfillRuntime
Ensure opts.polyfill = false behaves correctly for runtime-transformer
2016-01-06 15:23:41 +00:00
Sebastian McKenzie
d2f5a409da Merge pull request #3225 from hzoo/cp-semi
`babylon`: throw parse error if class properties do not have a semico…
2016-01-06 15:22:37 +00:00
Sebastian McKenzie
e6e13cbe35 Merge pull request #3166 from guybedford/moduleName
Add __moduleName support to System.register
2016-01-06 15:11:34 +00:00
Mike Anderson
2471d80bd0 Fix small typo in babel-generator README 2016-01-05 23:33:50 -06:00
Sam Goldman
aeeffe5cff Guard export interface against isExportDefaultSpecifier 2016-01-05 17:28:21 -08:00
Sam Goldman
17d19a0056 Add export interface Flow syntax support
An interface export is just like a type export. In fact, it's a syntax affordance which makes the following equivalent:

```javascript
interface I_ { ... }
export type I = I_;
```

```javascript
export interface I { ... }
```

See facebook/flow#1145
2016-01-05 15:57:45 -08:00
Henry Zhu
cf41c321af Don't overparenthesize, add yield tests 2016-01-05 18:12:25 -05:00
guybedford
d5f71d4a32 ensure opts.polyfill = false behaves correctly for runtime-transformer 2016-01-06 00:26:45 +02:00
Amjad Masad
06545e6f70 Merge pull request #3217 from babel/hzoo-patch-1
`babel-types`: add `Binary` alias to `AssignmentExpression` definitio…
2016-01-05 16:26:02 -06:00
jongleberry
37dbf7c5ed babel register cache: make sure the cache file's directory exists 2016-01-04 14:28:38 -08:00
Sam Goldman
26c97c4069 Add support for "declare interface" Flow syntax
This has been a feature in Flow for a long time (couldn't easily find a
specific commit adding this). Interfaces are basically undocumented, though, so
it's easy to see how this was missed.
2016-01-04 11:50:12 -08:00
Sam Goldman
e764346d5f Add support for "declare type" Flow syntax
See facebook/flow#1105
2016-01-04 11:42:43 -08:00
Henry Zhu
ab2135bc9f Add a check for parentheses for AwaitExpressions (fixes T6913) 2016-01-04 08:31:07 -05:00
Sebastian McKenzie
3fa51097a6 Revert "remove array generics from runtime" 2016-01-03 03:42:10 +00:00
Sebastian McKenzie
4e20a99b89 Revert "update core-js" 2016-01-03 03:41:40 +00:00
Henry Zhu
b5cf529d6b babel-types: add Binary alias to AssignmentExpression definition (fixes T6887) 2016-01-01 14:44:28 -05:00
guybedford
be2d85d688 use a _context object instead of a __moduleName argument 2015-12-31 17:11:51 +02:00
Sebastian McKenzie
2ec842d425 Merge pull request #3220 from jmm/not-a-directive
Don't parse parenthesized string as directive
2015-12-31 01:54:47 +00:00
Sebastian McKenzie
181e9b5957 Merge pull request #3214 from fabiomcosta/fix_rest_args_length_multiple_params
[T6891][fix][babel-plugin-transform-es2015-parameters] arguments.length optimization bugfix
2015-12-31 01:44:10 +00:00
Henry Zhu
976edfc067 babylon: throw parse error if class properties do not have a semicolon (fixes T6873) 2015-12-30 14:01:46 -05:00
Sebastian McKenzie
1ec3a348d6 Merge pull request #3221 from skleeschulte/patch-1
Added handling of "--nolazy" flag
2015-12-30 03:38:07 +00:00
Fabio M. Costa
699868ed2a [fix][babel-plugin-transform-es2015-parameters] arguments.length optimization bugfix 2015-12-28 21:56:49 -08:00
Stefan Kleeschulte
f9bab3a25c Added handling of "--nolazy" flag
See https://phabricator.babeljs.io/T6897
2015-12-29 06:43:46 +01:00
Jesse McCarthy
424d059292 Don't make directive from parenthesized string. 2015-12-28 11:04:33 -05:00
Jesse McCarthy
00505ac171 Add non-directive fixture.
(Failing.)
2015-12-28 11:04:33 -05:00
John-David Dalton
d9bf5da460 Defer to built-in typeof if built-in support for symbols exists. 2015-12-27 22:50:48 -06:00
Amjad Masad
570b50c895 Merge pull request #3213 from babel/print-bugs
Fix various print inefficiencies/bugs
2015-12-27 18:28:27 -06:00
Sebastian McKenzie
05896b834b Crawl up ancestry looking for possible candidates to infer displayName from rather than just checking the direct parent 2015-12-27 21:48:28 +00:00
Sebastian McKenzie
5ca1cf0506 Merge pull request #3203 from samwgoldman/flow-mixins-6.x
Add support for mixins to Babel 6.x
2015-12-27 21:04:40 +00:00