You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
text: `var _classPrivateNamedCallCheck = function (receiver, privateSet) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get weak field on non-instance"); }};`
2002
+
text: `function _classPrivateNamedMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return fn; }`
Copy file name to clipboardExpand all lines: tests/baselines/reference/privateNamedMemberOrder.js
+7-8
Original file line number
Diff line number
Diff line change
@@ -9,17 +9,16 @@ class A {
9
9
10
10
//// [privateNamedMemberOrder.js]
11
11
var_classPrivateFieldGet=function(receiver,privateMap){if(!privateMap.has(receiver)){thrownewTypeError("attempted to get private field on non-instance");}returnprivateMap.get(receiver);};
12
-
var_classPrivateNamedCallCheck=function(receiver,privateSet){if(!privateSet.has(receiver)){thrownewTypeError("attempted to get weak field on non-instance");}};
13
-
var_foo_1,_bar_1,_bar_2;
12
+
function_classPrivateNamedMethodGet(receiver,privateSet,fn){if(!privateSet.has(receiver)){thrownewTypeError("attempted to get private field on non-instance");}returnfn;}
var_classPrivateFieldGet=function(receiver,privateMap){if(!privateMap.has(receiver)){thrownewTypeError("attempted to get private field on non-instance");}returnprivateMap.get(receiver);};
27
+
function_classPrivateNamedMethodGet(receiver,privateSet,fn){if(!privateSet.has(receiver)){thrownewTypeError("attempted to get private field on non-instance");}returnfn;}
0 commit comments