Skip to content

Commit 818d3a3

Browse files
committed
fix
1 parent 831c2d5 commit 818d3a3

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

lib/constructs/interface.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -846,8 +846,8 @@ class Interface {
846846
if (typeof P === "symbol") {
847847
return Reflect.set(target, P, V, receiver);
848848
}
849-
// The `receiver` argument refers to the Proxy exotic object or an object
850-
// that inherits from it, whereas `target` refers to the Proxy target:
849+
// The \`receiver\` argument refers to the Proxy exotic object or an object
850+
// that inherits from it, whereas \`target\` refers to the Proxy target:
851851
if (target[implSymbol][utils.wrapperSymbol] === receiver) {
852852
`;
853853

test/__snapshots__/test.js.snap

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,8 @@ class ProxyHandler {
738738
if (typeof P === \\"symbol\\") {
739739
return Reflect.set(target, P, V, receiver);
740740
}
741+
// The \`receiver\` argument refers to the Proxy exotic object or an object
742+
// that inherits from it, whereas \`target\` refers to the Proxy target:
741743
if (target[implSymbol][utils.wrapperSymbol] === receiver) {
742744
const globalObject = this._globalObject;
743745

@@ -2960,6 +2962,8 @@ const proxyHandler = {
29602962
if (typeof P === \\"symbol\\") {
29612963
return Reflect.set(target, P, V, receiver);
29622964
}
2965+
// The \`receiver\` argument refers to the Proxy exotic object or an object
2966+
// that inherits from it, whereas \`target\` refers to the Proxy target:
29632967
if (target[implSymbol][utils.wrapperSymbol] === receiver) {
29642968
if (typeof P === \\"string\\") {
29652969
let namedValue = V;
@@ -5244,6 +5248,8 @@ const proxyHandler = {
52445248
if (typeof P === \\"symbol\\") {
52455249
return Reflect.set(target, P, V, receiver);
52465250
}
5251+
// The \`receiver\` argument refers to the Proxy exotic object or an object
5252+
// that inherits from it, whereas \`target\` refers to the Proxy target:
52475253
if (target[implSymbol][utils.wrapperSymbol] === receiver) {
52485254
if (typeof P === \\"string\\") {
52495255
let namedValue = V;
@@ -7130,6 +7136,8 @@ const proxyHandler = {
71307136
if (typeof P === \\"symbol\\") {
71317137
return Reflect.set(target, P, V, receiver);
71327138
}
7139+
// The \`receiver\` argument refers to the Proxy exotic object or an object
7140+
// that inherits from it, whereas \`target\` refers to the Proxy target:
71337141
if (target[implSymbol][utils.wrapperSymbol] === receiver) {
71347142
}
71357143
let ownDesc;
@@ -7955,6 +7963,8 @@ const proxyHandler = {
79557963
if (typeof P === \\"symbol\\") {
79567964
return Reflect.set(target, P, V, receiver);
79577965
}
7966+
// The \`receiver\` argument refers to the Proxy exotic object or an object
7967+
// that inherits from it, whereas \`target\` refers to the Proxy target:
79587968
if (target[implSymbol][utils.wrapperSymbol] === receiver) {
79597969
}
79607970
let ownDesc;
@@ -8266,6 +8276,8 @@ const proxyHandler = {
82668276
if (typeof P === \\"symbol\\") {
82678277
return Reflect.set(target, P, V, receiver);
82688278
}
8279+
// The \`receiver\` argument refers to the Proxy exotic object or an object
8280+
// that inherits from it, whereas \`target\` refers to the Proxy target:
82698281
if (target[implSymbol][utils.wrapperSymbol] === receiver) {
82708282
if (typeof P === \\"string\\") {
82718283
let namedValue = V;
@@ -9757,6 +9769,8 @@ class ProxyHandler {
97579769
if (typeof P === \\"symbol\\") {
97589770
return Reflect.set(target, P, V, receiver);
97599771
}
9772+
// The \`receiver\` argument refers to the Proxy exotic object or an object
9773+
// that inherits from it, whereas \`target\` refers to the Proxy target:
97609774
if (target[implSymbol][utils.wrapperSymbol] === receiver) {
97619775
const globalObject = this._globalObject;
97629776

@@ -11963,6 +11977,8 @@ const proxyHandler = {
1196311977
if (typeof P === \\"symbol\\") {
1196411978
return Reflect.set(target, P, V, receiver);
1196511979
}
11980+
// The \`receiver\` argument refers to the Proxy exotic object or an object
11981+
// that inherits from it, whereas \`target\` refers to the Proxy target:
1196611982
if (target[implSymbol][utils.wrapperSymbol] === receiver) {
1196711983
if (typeof P === \\"string\\") {
1196811984
let namedValue = V;
@@ -14232,6 +14248,8 @@ const proxyHandler = {
1423214248
if (typeof P === \\"symbol\\") {
1423314249
return Reflect.set(target, P, V, receiver);
1423414250
}
14251+
// The \`receiver\` argument refers to the Proxy exotic object or an object
14252+
// that inherits from it, whereas \`target\` refers to the Proxy target:
1423514253
if (target[implSymbol][utils.wrapperSymbol] === receiver) {
1423614254
if (typeof P === \\"string\\") {
1423714255
let namedValue = V;
@@ -16118,6 +16136,8 @@ const proxyHandler = {
1611816136
if (typeof P === \\"symbol\\") {
1611916137
return Reflect.set(target, P, V, receiver);
1612016138
}
16139+
// The \`receiver\` argument refers to the Proxy exotic object or an object
16140+
// that inherits from it, whereas \`target\` refers to the Proxy target:
1612116141
if (target[implSymbol][utils.wrapperSymbol] === receiver) {
1612216142
}
1612316143
let ownDesc;
@@ -16943,6 +16963,8 @@ const proxyHandler = {
1694316963
if (typeof P === \\"symbol\\") {
1694416964
return Reflect.set(target, P, V, receiver);
1694516965
}
16966+
// The \`receiver\` argument refers to the Proxy exotic object or an object
16967+
// that inherits from it, whereas \`target\` refers to the Proxy target:
1694616968
if (target[implSymbol][utils.wrapperSymbol] === receiver) {
1694716969
}
1694816970
let ownDesc;
@@ -17254,6 +17276,8 @@ const proxyHandler = {
1725417276
if (typeof P === \\"symbol\\") {
1725517277
return Reflect.set(target, P, V, receiver);
1725617278
}
17279+
// The \`receiver\` argument refers to the Proxy exotic object or an object
17280+
// that inherits from it, whereas \`target\` refers to the Proxy target:
1725717281
if (target[implSymbol][utils.wrapperSymbol] === receiver) {
1725817282
if (typeof P === \\"string\\") {
1725917283
let namedValue = V;

0 commit comments

Comments
 (0)