mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
14 lines
222 B
JavaScript
14 lines
222 B
JavaScript
var _foo = Symbol("foo");
|
|
class Cl {
|
|
test() {
|
|
return babelHelpers.classPrivateFieldLooseBase(Cl, _foo)[_foo]();
|
|
}
|
|
}
|
|
function* _foo2() {
|
|
yield 2;
|
|
return 3;
|
|
}
|
|
Object.defineProperty(Cl, _foo, {
|
|
value: _foo2
|
|
});
|