6222 Commits

Author SHA1 Message Date
Amjad Masad
27252b2039 Merge pull request #3121 from amasad/fix-T6736
Fix spacing in binary expression when right is a binary expression and has a unary on the left
2015-12-01 10:50:06 -08:00
Amjad Masad
2efb677822 Add test cases with spaces 2015-12-01 10:47:25 -08:00
Amjad Masad
54a2a47030 Fix spacing in binary expression when right is a binary expression and has a unary on the left 2015-12-01 10:37:58 -08:00
phantom10111
36ebe0c939 Fix static class properties in class expressions and anonymous default exported classes - fixes T2983 2015-12-01 17:59:53 +01:00
Logan Smyth
a675234526 Ensure that generator functions always have an identifier - fixes T6733 2015-11-30 23:14:10 -08:00
Amjad Masad
2f5b953066 v6.3.0 2015-11-30 14:58:30 -08:00
Henry Zhu
1d4526cd69 Merge pull request #3109 from phantom10111/additional-validators
Additional validators for CallExpression, NewExpresion,TemplateLiteral, ArrayExpression, SequenceExpression
2015-11-29 21:35:18 -05:00
Henry Zhu
b4f44e7637 Merge pull request #3102 from roadhump/issue/T2422
Make arrow functions to work with multiple args and flow type (fixes T2422)
2015-11-29 20:51:20 -05:00
James Kyle
7f0eed0c66 Merge pull request #3117 from nooks/patch-1
Optimizations for asyncToGenerator
2015-11-29 16:43:35 -08:00
James Kyle
211a241050 Merge pull request #3115 from justinfagnani/class-properties
Check for empty decorators array on property nodes
2015-11-29 16:40:55 -08:00
Nook Scheel
a81e11c4ae Use arguments with #apply 2015-11-29 21:47:04 +03:00
Nook Scheel
b2ff128e94 Unnecessary #call 2015-11-29 21:28:14 +03:00
Nook Scheel
8c7a81d317 Optimizations for asyncToGenerator
Never use a bind!
Never use arguments as an array!
2015-11-29 21:25:09 +03:00
Logan Smyth
2bb01c6373 Disable babelrc processing on the already-processed configuration - fixes T6690 2015-11-28 23:54:01 -08:00
Henry Zhu
c7c80bc0a3 Merge pull request #3097 from laskos/fix-async-module-export
Fix async exports undefined - fixes T3085
2015-11-28 20:45:00 -05:00
Sławomir Laskowski
d34cb69912 Don't mark async functions as hoist
`babel-template` no longer crashes in IE attempting to access unpopulated error stack
2015-11-29 01:47:24 +01:00
Justin Fagnani
6f0fcc8e7b Check for empty decorators array on property nodes 2015-11-28 13:06:50 -08:00
phantom10111
9a270a3d0a Fix return super(); in class constructor - fixes T2997 2015-11-25 23:53:53 +01:00
phantom10111
11a8086432 Make ArrayExpression validator accept nulls as holes in the array 2015-11-25 23:39:35 +01:00
Henry Zhu
d0f63c1a7b add validators for TemplateLiteral and ArrayExpression 2015-11-25 23:10:27 +01:00
phantom10111
615160ba66 Fix babel-helper-remap-async-to-generator to not fail with the new validation rules 2015-11-25 23:09:21 +01:00
phantom10111
8186510b5d Add validators to CallExpression and SequenceExpression 2015-11-25 23:09:13 +01:00
James Kyle
afd68f47dd Merge pull request #3106 from hon2a/hon2a/ie-error-stack
`babel-template` no longer crashes in IE attempting to access unpopulated error stack
2015-11-25 13:01:54 -08:00
hon2a
8df5a9d49e Merge branch 'master' into hon2a/ie-error-stack 2015-11-25 11:50:09 +01:00
Amjad Masad
c78c27a8d6 It's only valid if the node is the callee 2015-11-24 19:24:05 -08:00
Amjad Masad
486d781be3 Handle member expressions 2015-11-24 19:20:06 -08:00
Amjad Masad
f1f6c820fe Handle new X()() 2015-11-24 19:12:24 -08:00
Amjad Masad
d32fae6fcd No need for parens for new expressions without args 2015-11-24 19:07:03 -08:00
Sebastian McKenzie
58f512f7c4 Merge pull request #3103 from amasad/spacing
Respect spacing in compact mode
2015-11-25 14:02:05 +11:00
Amjad Masad
e481c5b570 use + instead of template string 2015-11-24 19:01:12 -08:00
Amjad Masad
e4c5d9dcb3 Respect compact mode in spacing 2015-11-24 19:01:12 -08:00
Sebastian McKenzie
8457885599 Merge pull request #3104 from amasad/semi
Fix up semicolon omission in compact mode
2015-11-25 13:55:09 +11:00
Sebastian McKenzie
71e53a5d4d Merge pull request #3110 from thejameskyle/tjk/ObjectMember
Add ObjectMember abstract type
2015-11-25 13:54:52 +11:00
James Kyle
86287a7a8c Add ObjectMember abstract type 2015-11-24 15:00:04 -08:00
Andrew Bradley
9c27f1e86a Fixes the wrong source path being passed to SourceMapConsumer#generatedPositionFor
`generatedPositionFor` accepts a position in one of the sourcemap's *input* source files. Therefore the `source` path
should be one of the sourcemap's input `sources`, not the output `file`.
2015-11-24 16:10:10 -05:00
Andrew Bradley
bbec2114ce Fixes T2864
- Drops input mappings that cannot be mapped through Babel's sourcemap
- For example, Babel's sourcemap does not have mappings for leading comments, so any mapping from an input sourcemap for those leading comments must be dropped from the merged sourcemap
2015-11-24 16:07:37 -05:00
TSUYUSATO Kitsune
922c621ffb Fixed T6675
https://phabricator.babeljs.io/T6675.
2015-11-24 22:39:50 +09:00
hon2a
af4271a262 babel-template no longer crashes in IE attempting to access unpopulated error stack. 2015-11-24 13:54:49 +01:00
Sebastian McKenzie
5c1d2ab92f Merge pull request #3099 from hzoo/validate-jsx
add more validation for jsx nodes
2015-11-24 20:42:42 +11:00
Amjad Masad
44d5552840 Fix up semicolon omission in compact mode 2015-11-23 21:32:44 -08:00
Aliaksei Shytkin
47871f80dd Make arrow functions to work with multiple args and flow return type (fixes T2422) 2015-11-23 15:20:16 +03:00
Henry Zhu
f56af90c20 add numericliteral 2015-11-21 22:50:21 -05:00
Henry Zhu
3a05513e31 literal to stringLiteral - fixes T6667 2015-11-21 22:25:21 -05:00
Henry Zhu
efa9a1abf2 add more validation for jsx nodes 2015-11-21 21:13:09 -05:00
Sebastian McKenzie
4c311ec2ab add 6.2.2 changelog 2015-11-19 14:48:44 -08:00
Sebastian McKenzie
3c5bced67d v6.2.2 2015-11-19 14:45:57 -08:00
Sebastian McKenzie
ba0388eba5 Merge pull request #3096 from loganfsmyth/double-class-traverse
Avoid duplicating traversal of class declarations - fixes T2694
2015-11-19 14:37:21 -08:00
Sebastian McKenzie
8df82c4f3c add 6.2.1 changelog 2015-11-19 14:04:15 -08:00
Sebastian McKenzie
a4e3af1c63 v6.2.1 2015-11-19 14:03:33 -08:00
Sebastian McKenzie
45d4e50b39 add resolution dirname to unknown plugin/preset error message 2015-11-19 14:01:38 -08:00