From 9a7fd29ce61e3f5c759ba5ca2ed2091e36dfce34 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 9 Sep 2024 18:35:15 -0700 Subject: [PATCH] [Refactor] change internal slot name from https://github.com/tc39/ecma262/pull/3306 --- aos/GetSetRecord.js | 2 +- implementation.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aos/GetSetRecord.js b/aos/GetSetRecord.js index bd988ef..52fe011 100644 --- a/aos/GetSetRecord.js +++ b/aos/GetSetRecord.js @@ -53,5 +53,5 @@ module.exports = function GetSetRecord(obj) { }; } - return { '[[Set]]': obj, '[[Size]]': intSize, '[[Has]]': has, '[[Keys]]': keys }; // step 12 + return { '[[SetObject]]': obj, '[[Size]]': intSize, '[[Has]]': has, '[[Keys]]': keys }; // step 12 }; diff --git a/implementation.js b/implementation.js index 75c75fc..578b808 100644 --- a/implementation.js +++ b/implementation.js @@ -29,7 +29,7 @@ module.exports = function symmetricDifference(other) { var otherRec = GetSetRecord(other); // step 3 - var keysIter = GetIteratorFromMethod(otherRec['[[Set]]'], otherRec['[[Keys]]']); // step 4 + var keysIter = GetIteratorFromMethod(otherRec['[[SetObject]]'], otherRec['[[Keys]]']); // step 4 var result = new $Set(); $setForEach(O, function (value) {