Moti Zilberman
7a7704fea0
Fix block scoping transform for declarations in labeled statements ( #4669 )
...
* Fix block scoping transform for declarations in labeled statements (#4122 )
* DRY block-scoping
2016-10-05 21:47:21 +02:00
Henry Zhu
b3dca4fb5a
v6.15.0
2016-09-01 11:03:06 -04:00
Ryan Biwer
23ea626241
Fix block scope remapping (fixes T7525) ( #3662 )
2016-09-01 10:48:32 -04:00
Henry Zhu
5ce325c399
v6.14.0
2016-08-24 17:40:46 -06:00
Adam Leventhal
0d1e1ee10c
incorrect handling of returns nested in switch cases ( #3618 )
2016-08-18 10:14:07 -04:00
Logan Smyth
e64aeb7316
v6.10.1
2016-06-11 00:36:09 -07:00
Logan Smyth
5ddce1372b
Fix an issue with the switch handing from PR #3490 .
2016-06-11 00:17:36 -07:00
Henry Zhu
c5ae951f98
v6.10.0
2016-06-11 00:05:21 -04:00
Logan Smyth
61b3a6314b
Merge pull request #3490 from jayphelps/T7324
...
create new lexical env inside switch statement blocks, fixes #T7324
2016-05-30 14:42:29 -07:00
Henry Zhu
cf6304a34b
v6.9.0
2016-05-17 14:49:17 -04:00
Jordan Klassen
dc1f40540d
Upgrade to lodash 4 ( #3315 )
...
* Upgrade to lodash 4
* Fix incorrect require in babel-runtime/scripts
* Replace cloneDeep with cloneDeepWith where applicable
2016-05-13 17:15:14 -04:00
Henry Zhu
05bf216339
v6.8.0
2016-05-02 19:43:49 -04:00
Jay Phelps
4166e5148e
create new lexical env inside switch statement blocks, fixes #T7324
2016-04-29 23:54:41 -07:00
Henry Zhu
4c23b01798
change plugins to use babel-runtime 6
2016-04-24 20:06:23 -04:00
Amjad Masad
fedd8bd50e
v6.7.1
2016-03-09 14:03:50 -08:00
Amjad Masad
07d2c15e99
quotes
2016-03-09 13:34:06 -08:00
Amjad Masad
3dd80a6b14
Update updateScopeInfo method to use moveBindingTo
2016-03-09 13:28:45 -08:00
Amjad Masad
8b4b02a5fb
[hotfix T7197] Use scope.moveBindingTo
...
I had deleted the binding and created a new one. I naively thought that
the analysis will automatically run again. But now discovered the method
I actually want to use: `scope.moveBindingTo` which moves the binding
and all the correct analysis. The only thing that was left to do is to
update `binding.kind` which I did manually.
2016-03-09 13:24:20 -08:00
Amjad Masad
3d5969ecff
v6.7.0
2016-03-08 16:52:45 -08:00
Amjad Masad
3bebc3a7ca
lint
2016-03-07 18:26:51 -08:00
Amjad Masad
77c7cc5363
Rework scope info updating in block-scoping transform
...
I previously tried an approach to scope bindings from var to scope but
it didn't catch all cases. This is evident in this bug:
https://phabricator.babeljs.io/T2892
Where even after transforming a const to a var we still get an error
that it's read-only.
This approach will go through and delete every existing let and const
binding and creates a new one with the kind "var"
2016-03-07 18:19:10 -08:00
Henry Zhu
57ef6a2b6a
v6.6.5
2016-03-04 18:16:17 -05:00
Henry Zhu
3689cae8e5
Merge pull request #3399 from babel/flow-comments
...
use flow instead of flow-comments
2016-03-04 16:24:28 -05:00
Henry Zhu
937b8a6767
use flow instead of flow-comments
2016-03-04 15:50:05 -05:00
Amjad Masad
3667527d04
Revert "Remove flow"
...
This reverts commit 2827ff6b01dcce69e9d3c0402e96b52b3a2a47ee.
2016-03-03 14:49:20 -08:00
Amjad Masad
47782a6170
Merge pull request #3389 from babel/block-binding-actual
...
Update scope binding info after transforming block-scoped bindings
2016-03-02 18:51:26 -08:00
Henry Zhu
39a8f5b796
v6.6.4
2016-03-02 16:29:17 -05:00
Sam Goldman
2827ff6b01
Remove flow
2016-03-01 22:33:30 -08:00
Amjad Masad
30bb38c4bb
Update scope binding info after transforming block-scoped bindings
...
When convert a const, let or any other block-bound binding to a var we
forget to update the scope info. This confuses other transforms that may
come after this as to which scope does the binding belongs to.
This also uncovered an issue where duplicate block-scoped bindings were allowed
to co-exist.
2016-03-01 17:03:06 -08:00
Henry Zhu
f34e6518ff
v6.6.0
2016-02-29 16:12:12 -05:00
Sebastian McKenzie
5b89849f43
Switch to klint, fix some lint rules
2016-02-14 23:25:14 +00:00
Andrew Schmadel
307d5c5a0d
rename scope bindings during block scope transform
2016-02-10 11:44:16 -05:00
Henry Zhu
f9f8ad6eff
v6.5.0
2016-02-06 19:06:41 -05:00
Henry Zhu
8cac20d845
v6.4.0
2016-01-06 15:34:12 -05:00
Amjad Masad
0d8e5a9e86
Fix over-parenthesizing of function expressions
2015-12-24 14:55:51 -08:00
Sebastian McKenzie
7b36967416
v6.3.13
2015-12-04 22:56:51 +11:00
Sebastian McKenzie
ae831c2270
v6.3.12
2015-12-04 22:56:13 +11:00
Sebastian McKenzie
4a1e5c17b4
v6.1.18
2015-11-12 13:46:30 -08:00
Sebastian McKenzie
23fd185590
v6.1.17
2015-11-12 13:40:25 -08:00
Sebastian McKenzie
c4c66687ea
v6.1.16
2015-11-12 13:33:20 -08:00
Sebastian McKenzie
9c91b555f9
v6.1.15
2015-11-12 12:15:47 -08:00
Sebastian McKenzie
f127f81cb7
v6.1.14
2015-11-12 12:01:18 -08:00
Sebastian McKenzie
548d973d12
v6.1.13
2015-11-12 11:57:45 -08:00
Sebastian McKenzie
af208e8acb
v6.1.12
2015-11-12 00:47:51 -08:00
Sebastian McKenzie
8fb4d55687
v6.1.11
2015-11-11 23:58:22 -08:00
Sebastian McKenzie
98b3dda500
v6.1.10
2015-11-11 23:52:57 -08:00
Sebastian McKenzie
15baf2afb5
v6.1.9
2015-11-11 23:46:00 -08:00
Sebastian McKenzie
e018723c7e
v6.1.8
2015-11-11 23:40:20 -08:00
Sebastian McKenzie
8dcf4aedc0
v6.1.7
2015-11-11 23:37:19 -08:00
Sebastian McKenzie
97443eada6
v6.1.6
2015-11-11 23:32:43 -08:00