mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
10 lines
408 B
JavaScript
10 lines
408 B
JavaScript
var _staticBlock;
|
|
var _selfBrandCheck = /*#__PURE__*/new WeakSet();
|
|
// These syntaxes should be transpiled:
|
|
// static {} / ??= / #self in / C?.#self
|
|
// The class declaration and the static private property should not be transpiled
|
|
class C {
|
|
static #self = (_staticBlock = () => C.#self ?? (C.#self = _selfBrandCheck.has(babelHelpers.checkInRHS(C?.#self))), _selfBrandCheck.add(this), C);
|
|
}
|
|
_staticBlock();
|