mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 14:43:33 +03:00
40 lines
1.1 KiB
JavaScript
40 lines
1.1 KiB
JavaScript
let Foo = function() {
|
|
"use strict";
|
|
function Foo() {
|
|
_classCallCheck(this, Foo);
|
|
_foo1.set(this, {
|
|
writable: true,
|
|
value: 1
|
|
});
|
|
}
|
|
_createClass(Foo, [
|
|
{
|
|
key: "test",
|
|
value: function test() {
|
|
let Nested = function() {
|
|
function Nested() {
|
|
_classCallCheck(this, Nested);
|
|
_foo.set(this, {
|
|
writable: true,
|
|
value: 2
|
|
});
|
|
}
|
|
_createClass(Nested, [
|
|
{
|
|
key: "test",
|
|
value: function test() {
|
|
_foo.has(this);
|
|
}
|
|
}
|
|
]);
|
|
return Nested;
|
|
}();
|
|
var _foo = new WeakMap();
|
|
_foo1.has(this);
|
|
}
|
|
}
|
|
]);
|
|
return Foo;
|
|
}();
|
|
var _foo1 = new WeakMap();
|