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 b4e7b5f commit 9f1b932
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"new-cap": [2, {
"capIsNewExceptions": [
"GetIntrinsic",
"GetKeysIterator",
"GetIteratorFromMethod",
"GetSetRecord",
"IteratorStep",
"IteratorValue",
Expand Down
31 changes: 0 additions & 31 deletions aos/GetKeysIterator.js

This file was deleted.

10 changes: 5 additions & 5 deletions implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ 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 IteratorStep = require('es-abstract/2023/IteratorStep');
var IteratorValue = require('es-abstract/2023/IteratorValue');
// var SetDataHas = require('./aos/SetDataHas');
var ToBoolean = require('es-abstract/2023/ToBoolean');
// var forEach = require('es-abstract/helpers/forEach');

var GetSetRecord = require('./aos/GetSetRecord');
var GetKeysIterator = require('./aos/GetKeysIterator');
// var SetDataHas = require('./aos/SetDataHas');
// var forEach = require('es-abstract/helpers/forEach');

var isSet = require('is-set');

Expand Down Expand Up @@ -64,7 +64,7 @@ module.exports = function intersection(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 9f1b932

Please sign in to comment.