Skip to content

Commit

Permalink
[patch] remove GetKeysIterator and its callable check
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jul 18, 2023
1 parent bfa0fcf commit 90dcf36
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 35 deletions.
3 changes: 1 addition & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"capIsNewExceptions": [
"Call",
"GetIntrinsic",
"GetKeysIterator",
"GetIteratorFromMethod",
"GetSetRecord",
"IteratorStep",
"IteratorValue",
Expand All @@ -24,7 +24,6 @@
"ToIntegerOrInfinity",
"ToNumber",
"Type",
// GetKeysIterator
"Call",
"Get",
"IsCallable",
Expand Down
31 changes: 0 additions & 31 deletions aos/GetKeysIterator.js

This file was deleted.

4 changes: 2 additions & 2 deletions implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ var $TypeError = GetIntrinsic('%TypeError%');
var $Set = require('es-set/polyfill')();

var Call = require('es-abstract/2023/Call');
var GetIteratorFromMethod = require('es-abstract/2023/GetIteratorFromMethod');
var GetSetRecord = require('./aos/GetSetRecord');
var GetKeysIterator = require('./aos/GetKeysIterator');
var IteratorStep = require('es-abstract/2023/IteratorStep');
var IteratorValue = require('es-abstract/2023/IteratorValue');
// var SetDataHas = require('./aos/SetDataHas');
Expand Down Expand Up @@ -46,7 +46,7 @@ module.exports = function difference(other) {
});
// } else { // step 7
if (thisSize > otherRec['[[Size]]']) {
var keysIter = GetKeysIterator(otherRec); // step 7.a
var keysIter = GetIteratorFromMethod(otherRec['[[Set]]'], otherRec['[[Keys]]']); // step 7.a
var next = true; // step 7.b
while (next) { // step 7.c
next = IteratorStep(keysIter); // step 7.c.i
Expand Down

0 comments on commit 90dcf36

Please sign in to comment.