Artem Yavorsky
7af44fce75
Merge pull request #401 from yuzhakovvv/feature/add-types-to-npmignore
...
Add `lib/types.js` to .npmignore
2017-08-27 15:14:19 +03:00
Oliver Don
960151c876
Fix #4840 : Alias class prototype for methods in loose mode ( #5560 )
...
* Fix #4840 : Alias class prototype for methods in loose mode
* Cleanup
2017-08-26 21:15:45 -04:00
Henry Zhu
6d24416645
7.0.0-beta.21
2017-08-26 12:05:26 -06:00
James Henry
acf0e65090
Apply location data fix to decorators plugin ( #699 )
2017-08-26 11:38:11 -04:00
Brian Ng
8f2f250144
Merge pull request #696 from babel/obj-rest-not-last
...
Throw if rest element is not in last position for object expressions
2017-08-26 09:57:51 -05:00
Brian Ng
2fa1f9929f
Throw if rest element is not in last position for object expressions
2017-08-26 09:34:33 -05:00
Brian Ng
083a44658c
Enable optionalCatchBinding plugin for test262 tests ( #697 )
2017-08-26 12:14:56 +02:00
Justin Ridgewell
7795750862
Tests
2017-08-25 22:52:17 -04:00
Adam Miller
2d8fdf3045
Allow native Symbols as computed property names ( #6705 )
...
The for-in loop in helpers.defineEnumerableProperties doesn't iterate over Symbols.
If Object.getOwnPropertySymbols exists, include the discovered values when defining properties.
2017-08-25 22:33:51 -04:00
Brian Ng
6ba38a2a78
Merge pull request #693 from babel/trailing-comma-rest-param
...
Raise error if trailing comma after rest element in async func params
2017-08-25 20:12:59 -05:00
Brian Ng
a659ac6bda
Merge pull request #695 from babel/issue691
...
Fix TypeScript TypeParameterDeclaration location start values
2017-08-25 20:12:47 -05:00
Justin Ridgewell
a70cda812c
Remove old test
2017-08-25 19:52:15 -04:00
Justin Ridgewell
4b297907d1
Move fix into #checkBlockScopedCollisions
2017-08-25 19:23:11 -04:00
Moti Zilberman
48c114169f
Move up check for binding kind "local"
...
This puts the check before the call to `checkBlockScopedCollisions`.
Fixes #4946 .
2017-08-25 19:21:38 -04:00
Moti Zilberman
68786c4f0f
Add test for issue #4946
2017-08-25 19:21:38 -04:00
Moti Zilberman
1ef5871300
Add tests for #5491 and related cases
...
The two function expression tests would fail before 6705de7. The
function declaration test was not a failing case but is added here for
completeness.
2017-08-25 19:21:38 -04:00
Moti Zilberman
c3e8715010
Mask existing "local" bindings when registering new binding
...
Fixes #5491 .
2017-08-25 19:21:38 -04:00
Brian Ng
af2c974473
Fix TypeScript TypeParameterDeclaration location start values
2017-08-25 09:54:16 -05:00
James Henry
87b322cfc2
Add failing test case
2017-08-25 09:49:03 -05:00
Brian Ng
65db277364
Raise error if trailing comma after rest element in async func params
2017-08-24 21:59:01 -05:00
Brian Ng
c441afeaa6
Improve error message for comma after rest element in arrow func
2017-08-24 21:28:19 -05:00
Mauro Bringolf
d8b4073536
Consistent const violations ( #6100 )
...
* Changed updateExpression to report itself as violation instead of its argument
* Update getBindingIdentifiers to work with forXStatement and return proper node as violation
* Updated unaryExpression violation to be consistent with changes.
2017-08-24 21:19:02 -04:00
Brian Ng
27aae6c0f9
Merge pull request #686 from babel/invalid-label-declarations
2017-08-24 19:45:17 -05:00
Brian Ng
2bc124bf49
Fix some cases of keywords with escape sequences
2017-08-24 19:27:09 -05:00
Brian Ng
5e60ad6688
Fix some cases of invalid labeled declarations
2017-08-24 19:00:52 -05:00
Mateusz Burzyński
5d83e2692f
Adjusted Object Rest/Spread syntax handling to the latest spec ( #670 )
2017-08-24 18:31:50 -05:00
Mateusz Burzyński
5df1139567
Test262 update ( #692 )
2017-08-24 17:42:04 -05:00
Mateusz Burzyński
3c4f19a28d
Adjusted Object Rest/Spread tests to use only allowed syntax from the latest spec ( #6102 )
2017-08-24 15:50:43 -04:00
Noah Lemen
2db0c3ad1d
linting: disallow t.identifier("undefined") in plugins ( #6096 )
...
* add new custom eslint rule, replace remaining t.identifier("undefined") with buildUndefinedNode(), update tests
* change no-undefined-identifier reporting descriptor
2017-08-24 15:43:01 -04:00
Sven SAULEAU
f0e49dceb5
Merge pull request #400 from devdevil666/feature/license
...
Change license year
2017-08-24 09:20:18 +02:00
Nikita Yuzhakov
93ebb58e28
Add 'lib/types.js' to .npmignore
2017-08-23 19:08:23 +03:00
Evgeniy
0507c067f4
Change license
2017-08-23 18:48:21 +03:00
Nicolò Ribaudo
4577bd1b7c
TypeParameterInstantiation params can be "Flow" nodes, not "FlowType" ( #6140 )
2017-08-22 23:11:02 -04:00
Daniel Lo Nigro
93cf26abca
Fix babel-standalone for realz ( #6137 )
...
* Fix babel-standalone
* Fix infinite loop in Makefile (oops)
* Override Node.js module resolution to handle babel-core
2017-08-22 13:46:30 -07:00
Brian Ng
be0fe1c6b6
Update rollup config options ( #685 )
2017-08-22 15:59:05 -04:00
Astha Sharma
62c22c7b5d
Removed the deprecated jsx pragma detection code ( #6145 )
...
* Removed the deprecated jsx pragma detection code and the concerned tests that included jsx-pragma
* Removed extra tests
* Restored packages/babel-plugin-transform-react-jsx/test/fixtures/react/honor-custom-jsx-pragma-option/
2017-08-22 15:29:06 -04:00
Bryan Wain
63baaa7148
add --config-file option to CLI to pass in .babelrc location ( #6133 )
2017-08-22 13:58:24 -04:00
Sangboak Lee
d83064a82e
add test for do expressions ( #688 )
2017-08-22 08:48:56 -05:00
Justin Ridgewell
7e726a81e6
Complete export transform split ( #6139 )
...
They were each transforming the other's syntax (including namespace
transform would transform default, too, and vice-versa).
2017-08-21 14:15:40 -04:00
Ramiro Silveyra d'Avila
9e4e64dac9
Remove Flow support in React preset ( #6118 )
2017-08-21 10:48:18 -04:00
Daniel Lo Nigro
3569cb9922
Allow nightly Yarn builds to be used ( #6138 )
...
* Allow nightly Yarn builds to be used
Fixes:
```
C:\src\babel (fix-it-fix-it-fix-it-fix-it) (babel)
λ yarn
yarn install v1.0.0-20170811.1240
[1/5] Validating package.json...
error babel@: The engine "yarn" is incompatible with this module. Expected version ">=0.27.5".
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
```
* Use Yarn 0.28.4 to fix build
2017-08-20 16:19:17 -07:00
James Henry
d0c7d7a8c7
Fix: Use parseExprAtom() for TS module id string ( #684 )
2017-08-20 10:38:55 -05:00
greenkeeper[bot]
d685b3999c
Update rollup to the latest version 🚀 ( #682 )
2017-08-20 10:27:15 -05:00
Nicolò Ribaudo
79d6bad5c2
Disallow failures in the flow-test JOB 🎉
2017-08-19 23:13:47 +02:00
Nicolò Ribaudo
748b6fc477
Add option to update the whitelist
2017-08-19 22:18:10 +02:00
Nicolò Ribaudo
656815a53a
Add whitelist to flow tests
2017-08-19 22:02:27 +02:00
Nicolò Ribaudo
942d22dd70
Remove the get_harcoded_tests function, use get_tests
2017-08-19 18:25:18 +02:00
Nicolò Ribaudo
1a9b340cb9
Use a Map instead of an Obejct to store tests
...
This change has two reasons:
- The object was actually used as a map
- Using an object leads some problems with the
private_class_fields/constructor.js test, since
`tests[test_name] || {}` returned the Obejct
constructor instead of an empty object.
2017-08-19 18:24:21 +02:00
Henry Zhu
f87b81a8b1
7.0.0-beta.20
2017-08-19 10:36:28 -04:00
Sangboak Lee
c6a094a9d2
Split export extensions into 2 different plugins, update stage presets ( #6080 )
2017-08-19 09:35:40 -04:00