Skip to content

Commit 78458b3

Browse files
committed
chore: no differences for privateNameHashCharName
1 parent bd43538 commit 78458b3

File tree

2 files changed

+11
-26
lines changed

2 files changed

+11
-26
lines changed

testdata/baselines/reference/submodule/conformance/privateNameHashCharName.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,19 @@ class C {
1313

1414

1515
//// [privateNameHashCharName.js]
16+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
17+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
18+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
19+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
20+
};
21+
var _C_;
1622
#;
1723
class C {
18-
#;
24+
constructor() {
25+
_C_.set(this, void 0);
26+
}
1927
m() {
20-
this.#;
28+
__classPrivateFieldGet(this, _C_, "f");
2129
}
2230
}
31+
_C_ = new WeakMap();

testdata/baselines/reference/submodule/conformance/privateNameHashCharName.js.diff

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)