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
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
Justin Ridgewell
43040a4181
Private Properties phase 1 ( #7666 )
...
* Private Properties phase 1
Co-authored-by: CodingItWrong
* Private fields are optional
* Docs update
2018-04-05 11:17:34 +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
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
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
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
Anatoli Papirovski
2b710d0387
Do not access out of bounds arguments ( #6792 )
...
Potentially out of bounds arguments should not just be directly
accessed, instead use a ternary operator to check length.
2017-11-17 21:39:08 +01:00
Satyajit Sahoo
7ae6e1e5a0
Add /*#__PURE__*/ annotatiotion for babel-plugin-async-to-generator. Fixes #6572
2017-11-12 18:31:48 +05:30
Henry Zhu
9ac326b075
remove es20xx prefixes from plugins and rename folders ( #6575 )
2017-10-28 20:43:15 -04:00