mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
* [static blocks] Do not inject new static fields after static code * Update fixtures * Less parentheses * Avoid temp variable * Preserve class name * Fix Babel 8 * Fix ts * fix ts again * harden new-target test * Fix old Babel 7 compat --------- Co-authored-by: Huáng Jùnliàng <[email protected]>
8 lines
231 B
JavaScript
8 lines
231 B
JavaScript
var _staticBlock;
|
|
var _fooBrandCheck = /*#__PURE__*/new WeakSet();
|
|
class A {
|
|
#foo = void _fooBrandCheck.add(this);
|
|
static #_ = _staticBlock = () => register(A, _fooBrandCheck.has(babelHelpers.checkInRHS(A)));
|
|
}
|
|
_staticBlock();
|