Markus Török
6597a472b3
Add "use strict" directive ( #7411 )
...
* #7349
- Add "use strict" directive to transformed class bodies
* Update tests (#7349 )
* Add test for program with use strict directive (#7349 )
* Update tests (#7349 )
* Update source mapping (#7349 )
* Add test for parent blockStatement with use strict directive (#7349 )
* Update tests (#7349 )
* Update tests (#7349 )
* Update tests (#7349 )
* Add test for constructor-only class (#7349 )
* Constructor only classes are strict, too
But constructor only that use non-simple parameters must use a strict function wrapper.
* Fix test
* Wrapper not needed if class is already strict
* Revert change to lerna.json
2018-04-10 17:33:38 -04:00
Justin Ridgewell
d17adf40df
Use construct helper in New Spread ( #7677 )
...
* Use construct helper in New Spread
* CircleCI
2018-04-06 10:40:38 +01:00
Justin Ridgewell
450a1678f2
Use getProto and setProto helpers ( #7675 )
...
Depends on #7674 .
2018-04-06 02:54:08 +01:00
Justin Ridgewell
e9ed0f5f21
Split _wrapNativeSuper into helpers ( #7674 )
...
These can be reused in a few transforms.
2018-04-06 01:18:44 +01:00
Deven Bansod
b09c729675
Use expect's instanceOf and toHaveProperty methods
2018-03-27 22:34:25 +05:30
Deven Bansod
c8d82d6483
Migrate all remaining fixtures to jest expect
2018-03-24 16:22:20 +05:30
Deven Bansod
0856f89882
Migrate -transform-block-scoping and -transform-classes to jest expect
2018-03-24 16:22:18 +05:30
Logan Smyth
c662c2ada2
Use strict namespace behavior for mjs files. ( #7545 )
2018-03-15 13:27:01 -07:00
Mateusz Burzyński
586d3b5929
Wrap wrapNativeSuper helpers in redefining functions for better tree-shakeability ( #7188 )
2018-03-14 23:48:33 +01:00
Simon Kjellberg
07ab02f6b2
Fix incorrect value of _cache in _wrapNativeSuper ( #7570 )
...
The boolean expressions returns false in environments where Map is missing.
This change explicitly sets _cache to undefined in such cases, to ensure the cache methods will be ignored.
2018-03-14 16:37:51 -04:00
Nicolò Ribaudo
91a114f74a
[transform-classes] Fix typo in _wrapNativeSuper helper
2018-03-14 19:23:10 +01:00
Nicolò Ribaudo
a86d311986
Reuse the assertThisInitialized helper in possibleConstructorReturn ( #7493 )
2018-03-05 08:11:16 -08:00
Logan Smyth
7cc00cce0d
Require output fixture extension to match sourceType output.
2018-03-04 13:31:33 -08:00
Logan Smyth
beb99dfda1
Rename test fixtures using module syntax to .mjs files.
2018-03-04 13:31:32 -08:00
Mateusz Burzyński
4d164bd8e6
Added babel-helper-split-export-declaration ( #7313 )
2018-02-13 16:44:05 +01:00
Nicolò Ribaudo
8659e1a88c
Remove old expected.{js,json} files ( #7187 )
2018-01-09 13:10:30 -06:00
Raja Sekar
0f42accb87
Renamed files
2018-01-09 15:36:42 +01:00
Nicolò Ribaudo
ae3f5b9149
Return the obj in setPrototypeOf fallback ( #7080 )
2017-12-20 22:48:10 +01:00
Nicolò Ribaudo
0c885b3200
Add support for extending builtins ( #7020 )
2017-12-20 14:46:00 -05:00
Nicolò Ribaudo
509dbb7302
this before super() is a runtime error, not a static one. (#6467 )
...
* Check that super.* is after super() at runtime
* "missing super() call in constructor" runtime
* "'this' is not allowed before super()" runtime
2017-12-06 06:46:54 +01:00
Henry Zhu
9ac326b075
remove es20xx prefixes from plugins and rename folders ( #6575 )
2017-10-28 20:43:15 -04:00