Sebastian McKenzie
65998c3437
add error message for incompatible babel-runtime versions
2015-03-06 02:23:30 +11:00
Marijn Haverbeke
3365478645
Add a plugin mechanism to allow JSX parser to be a module
...
And export a few more things
2015-03-05 16:00:34 +01:00
Marijn Haverbeke
06f3b3c224
Attach context update algorithm to token types
...
For, theoretically, easier extendability
2015-03-05 15:59:12 +01:00
Marijn Haverbeke
6bd1013f2c
Use uniform object type for node types
...
Speeds things up by about 9% on io.js 1.3
2015-03-05 15:59:12 +01:00
Marijn Haverbeke
141905f9fd
Consume whitespace before, rather than after, reading a token
...
Simplifies several things
2015-03-05 15:59:12 +01:00
Marijn Haverbeke
bc48c02a18
Move the parser state into an object
...
Makes almost everything in acorn.js a method of this object.
Performance is not significantly affected on a modern V8. Makes the
code reentrant and allows us to more easily expose more methods
externally in the future.
On the other hand, the proliferation of `this.` is unfortunate.
2015-03-05 15:59:12 +01:00
Marijn Haverbeke
33307e789a
Update tools/generate-identifier-regex.js
...
So that it can also spit out the astral maps.
2015-03-05 15:55:38 +01:00
Marijn Haverbeke
d76ea4b3be
Make the tokenizer aware of multi-byte characters in ES6 mode
...
Add a data structure to recognize astral identifier chars. Parse whole
code points when looking for identifiers.
Issue #215
2015-03-05 15:55:38 +01:00
Ondrej Kraus
160de340b0
add possiblity of passing user arguments by separating them with --
...
Now, when user arguments have names colliding with node arguments,
they can be separated by -- and will be parsed correctly.
2015-03-05 14:35:53 +01:00
Marijn Haverbeke
891d5d07dd
Allow braced \u escapes in identifiers
...
We still can't properly recognize code points as ES6-style
identifier chars.
Issue #214
2015-03-04 15:37:26 +01:00
Marijn Haverbeke
59dc29f3f0
In ES6-mode, don't treat keywords with escaped characters as regular identifiers
...
See https://mathiasbynens.be/notes/javascript-identifiers-es6
2015-03-04 15:29:15 +01:00
Sebastian McKenzie
76ca40f698
Merge pull request #944 from sindresorhus/modularize-tofastproperties
...
modularize `util.toFastProperties()`
2015-03-05 01:10:26 +11:00
Sindre Sorhus
01ed824b5c
modularize util.toFastProperties()
...
https://github.com/sindresorhus/to-fast-properties
2015-03-04 21:02:36 +08:00
Sebastian McKenzie
6b0dbc4486
bump regenerator-babel
2015-03-04 23:29:37 +11:00
Sebastian McKenzie
2648268f30
add contextVariables to scope
2015-03-04 22:54:00 +11:00
Sebastian McKenzie
8cf5bf7037
add filename arg to resolveModuleSource option
2015-03-04 22:53:50 +11:00
Sebastian McKenzie
60961bc3ff
bump ast-types - fixes #930
2015-03-04 22:53:38 +11:00
Sebastian McKenzie
df16bc17e7
clean up formatting of system module formatter
2015-03-04 22:52:44 +11:00
Sebastian McKenzie
5337ab5a08
statically bind super references in object expressions - fixes #943
2015-03-04 22:52:07 +11:00
Sebastian McKenzie
2eaeebcce4
inherit from class constructor block statement - fixes #937
2015-03-03 23:38:11 +11:00
Sebastian McKenzie
ad71010144
4.6.6
2015-03-03 22:44:44 +11:00
Sebastian McKenzie
864169c1eb
v4.6.6
v4.6.6
2015-03-03 22:43:06 +11:00
Sebastian McKenzie
930d7f9aa6
add 4.6.6 changelog
2015-03-03 22:38:20 +11:00
Sebastian McKenzie
ed40ec03d1
more es6, template literals and modules
2015-03-03 22:31:49 +11:00
Sebastian McKenzie
73062ae240
take into consideration non-identifier nodes in es6.blockScopingTDZ transformer, also turn default and parameters into lets instead of vars - fixes #929
2015-03-03 22:30:52 +11:00
Sebastian McKenzie
bafa3e0d4c
add missing is - fixes #931 - thanks @neVERberleRfellerER
2015-03-03 10:38:18 +11:00
Sebastian McKenzie
f3d2b2bb81
Merge branch 'master' of github.com:babel/babel
2015-03-03 09:49:35 +11:00
Sebastian McKenzie
a74b67d4eb
Merge pull request #932 from hzoo/more-es6
...
More es6
2015-03-03 09:49:29 +11:00
Sebastian McKenzie
625416862f
remove no es6 syntax line from contributing.md
2015-03-03 09:49:20 +11:00
Sebastian McKenzie
8dda8838ba
check for body existence before length in dead code elimination transformer - fixes #931
2015-03-03 09:37:52 +11:00
Henry Zhu
96d3a25213
use more es6 concise methods
2015-03-02 10:34:30 -05:00
Sebastian McKenzie
727208f376
4.6.5
2015-03-02 22:55:36 +11:00
Sebastian McKenzie
1b046a6ecb
v4.6.5
v4.6.5
2015-03-02 22:54:35 +11:00
Sebastian McKenzie
3b8ed0d401
add 4.6.5 changelog
2015-03-02 22:51:21 +11:00
Sebastian McKenzie
d4c98d7738
add transformer aliases
2015-03-02 22:47:00 +11:00
Sebastian McKenzie
4e44af819f
fix rogue strict reference
2015-03-02 22:45:21 +11:00
Sebastian McKenzie
a65acd73ca
fix rogue useStrict transformer references
2015-03-02 22:41:55 +11:00
Sebastian McKenzie
b7cb2bcb7b
rename useStrict transformer to strict
2015-03-02 22:37:51 +11:00
Marijn Haverbeke
cbd8aa8f06
Bump version number post-0.12
2015-03-02 11:31:27 +01:00
Marijn Haverbeke
99f1989f72
Mark release 0.12
2015-03-02 11:31:11 +01:00
Marijn Haverbeke
8c98acf5d6
Make sure all ignored files are ignored in npmigore
2015-03-02 11:30:47 +01:00
Sebastian McKenzie
5ac4dc0541
don't evaluate ArrayExpressions
2015-03-02 17:16:10 +11:00
Sebastian McKenzie
99ddd02b0a
change Function export to avoid messing with istanbul
2015-03-02 15:38:43 +11:00
Sebastian McKenzie
19cfee14fd
4.6.4
2015-03-02 15:38:31 +11:00
Sebastian McKenzie
fea487bf91
v4.6.4
v4.6.4
2015-03-02 15:34:10 +11:00
Sebastian McKenzie
ff2cbd5a2e
Merge branch 'master' of github.com:babel/babel
2015-03-02 15:30:30 +11:00
Sebastian McKenzie
12e01f9e71
remove optional property on function params - fixes #927
2015-03-02 15:30:05 +11:00
Sebastian McKenzie
f62436909d
Merge pull request #923 from mathiasbynens/patch-4
...
Explicitly update the regexpu dependency to v1.1.2
2015-03-02 11:32:27 +11:00
Mathias Bynens
e42c1adeb6
Explicitly update the regexpu dependency to v1.1.2
2015-03-01 18:50:17 +01:00
Sebastian McKenzie
e30dbbab94
properly replace labels in spec for of transformer - fixes #913 , closes #914
2015-03-02 01:41:13 +11:00