Skip to content

Commit 4a3bc92

Browse files
committed
scope handling fix (wip)
1 parent 86dea06 commit 4a3bc92

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/org/htmlunit/javascript/JavaScriptEngine.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,7 +1347,7 @@ public static Scriptable newArray(final Scriptable scope, final int length) {
13471347
* @param arrayLike the backend
13481348
* @return the new NativeArrayIterator
13491349
*/
1350-
public static Scriptable newArrayIteratorTypeKeys(final Scriptable scope, final Scriptable arrayLike) {
1350+
public static Scriptable newArrayIteratorTypeKeys(final VarScope scope, final Scriptable arrayLike) {
13511351
return new NativeArrayIterator(scope, arrayLike, NativeArrayIterator.ARRAY_ITERATOR_TYPE.KEYS);
13521352
}
13531353

@@ -1360,7 +1360,7 @@ public static Scriptable newArrayIteratorTypeKeys(final Scriptable scope, final
13601360
* @param arrayLike the backend
13611361
* @return the new NativeArrayIterator
13621362
*/
1363-
public static Scriptable newArrayIteratorTypeValues(final Scriptable scope, final Scriptable arrayLike) {
1363+
public static Scriptable newArrayIteratorTypeValues(final VarScope scope, final Scriptable arrayLike) {
13641364
return new NativeArrayIterator(scope, arrayLike, NativeArrayIterator.ARRAY_ITERATOR_TYPE.VALUES);
13651365
}
13661366

@@ -1373,7 +1373,7 @@ public static Scriptable newArrayIteratorTypeValues(final Scriptable scope, fina
13731373
* @param arrayLike the backend
13741374
* @return the new NativeArrayIterator
13751375
*/
1376-
public static Scriptable newArrayIteratorTypeEntries(final Scriptable scope, final Scriptable arrayLike) {
1376+
public static Scriptable newArrayIteratorTypeEntries(final VarScope scope, final Scriptable arrayLike) {
13771377
return new NativeArrayIterator(scope, arrayLike, NativeArrayIterator.ARRAY_ITERATOR_TYPE.ENTRIES);
13781378
}
13791379

0 commit comments

Comments
 (0)