Skip to content

Commit a8291f4

Browse files
committed
[Refactor] change internal slot name
from tc39/ecma262#3306
1 parent d9c8f69 commit a8291f4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

aos/GetSetRecord.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,5 @@ module.exports = function GetSetRecord(obj) {
5353
};
5454
}
5555

56-
return { '[[Set]]': obj, '[[Size]]': intSize, '[[Has]]': has, '[[Keys]]': keys }; // step 12
56+
return { '[[SetObject]]': obj, '[[Size]]': intSize, '[[Has]]': has, '[[Keys]]': keys }; // step 12
5757
};

implementation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports = function isDisjointFrom(other) {
3737
var index = 0; // step 5.a
3838
if (index < thisSize) { // step 5.a.i
3939
index += 1; // step 5.a.ii
40-
var inOther = ToBoolean(Call(otherRec['[[Has]]'], otherRec['[[Set]]'], [e])); // step 5.b.iii.1
40+
var inOther = ToBoolean(Call(otherRec['[[Has]]'], otherRec['[[SetObject]]'], [e])); // step 5.b.iii.1
4141
if (inOther) {
4242
// eslint-disable-next-line no-throw-literal
4343
throw false; // step 5.b.iii.2, kinda
@@ -52,7 +52,7 @@ module.exports = function isDisjointFrom(other) {
5252
throw e;
5353
}
5454
} else { // step 6
55-
var keysIter = GetIteratorFromMethod(otherRec['[[Set]]'], otherRec['[[Keys]]']); // step 6.a
55+
var keysIter = GetIteratorFromMethod(otherRec['[[SetObject]]'], otherRec['[[Keys]]']); // step 6.a
5656
var next; // step 6.b
5757
while (!keysIter['[[Done]]']) { // step 6.c
5858
next = IteratorStepValue(keysIter); // step 6.c.i

0 commit comments

Comments
 (0)