mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
Co-authored-by: Nicolò Ribaudo <[email protected]> Fixes https://github.com/babel/babel/issues/15013
11 lines
382 B
JavaScript
11 lines
382 B
JavaScript
"use strict";
|
|
|
|
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 = (_selfBrandCheck.add(this), C);
|
|
static #_ = C.#self ?? (C.#self = _selfBrandCheck.has(babelHelpers.checkInRHS(C?.#self)));
|
|
}
|