wentout
c59870c526
Mark class prototype as read-only ( #12115 )
...
* initial code 2 fix the issue #2025
* Mark class prototype as read-only
* Update fixtures
* Fix failure
* Update Babel 8 fixtures
* Disable in loose mode
* Update fixtures
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com >
2021-12-10 21:44:48 +01:00
Nicolò Ribaudo
ea6a438315
Enable external-helpers by default in tests ( #12911 )
...
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com >
Co-authored-by: Babel Bot <babel-bot@users.noreply.github.com >
2021-02-26 23:33:26 +01:00
Nicolò Ribaudo
771841f764
Fix _isNativeReflectConstruct helper ( #8461 )
2021-02-22 22:49:44 +01:00
Christoph Nakazawa
2bb2933dea
[helpers] Add a private function name within createSuper ( #11514 )
2020-05-04 23:30:53 +02:00
Justin Ridgewell
070ec201bb
Speed up the createSuper helper ( #11401 )
2020-04-10 16:00:20 +02:00
Nicolò Ribaudo
67609a1232
Don't call createSuper in loose mode (it was unused) ( #11358 )
...
* Don't call `createSuper` in loose mode (it was unused)
* Update fixtures
2020-04-01 23:08:21 +02:00
Nicolò Ribaudo
f6c7bf36ce
Allow extending untranspiled classes ( #8656 )
2020-03-16 23:59:15 +01:00
Nicolò Ribaudo
d21e2217d5
Skip newlines around inline #__PURE__ annotations ( #11133 )
...
* Skip newlines around #__PURE__ annotations
* Update tests
2020-02-13 19:16:33 +01:00
Justin Ridgewell
2af7a33c4e
Fix class inheritance in IE10 ( #7969 )
...
* Revert "Move subclass inheritance to end (#7772 )"
This reverts commit f8ab9466d3 .
* Only use getPrototypeOf if setPrototypeOf is implemented
* Update fixtures
* Helpers updates
* Update fixtures
* Fall back to getPrototypeOf
* Update fixtures
2018-05-23 16:21:21 -04:00
Michael McGlynn
a5edab7393
Change const to var inside helper
2018-04-26 23:33:12 +02:00
Justin Ridgewell
0a257e8972
Move more class state out of replaceSupers ( #7750 )
...
Yes, the output is uglier. But, this is necessary for me to refactor
`replaceSupers` for #7733 , which is necessary for both #7555 and
https://github.com/babel/babel/pull/7553#issuecomment-381434519 .
I'm still in the middle of cleaning up all this code. Don't expect
`transformClass` to survive much longer as it's written currently.
2018-04-21 22:56:14 -04:00
Justin Ridgewell
3616137864
Memoize computed super properties ( #7776 )
...
Fixes #7775 .
2018-04-21 22:15:02 -04:00