Skip to content

Commit 2b663de

Browse files
committed
Correction of the guard in SetGetSizeNode.
1 parent fa4d932 commit 2b663de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graal-js/src/com.oracle.truffle.js/src/com/oracle/truffle/js/builtins/SetPrototypeBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ protected static int doSet(JSSetObject thisObj) {
770770
}
771771

772772
@SuppressWarnings("unused")
773-
@Specialization(guards = {"!isJSMap(thisObj)"})
773+
@Specialization(guards = {"!isJSSet(thisObj)"})
774774
protected static int notSet(@SuppressWarnings("unused") Object thisObj) {
775775
throw Errors.createTypeErrorSetExpected();
776776
}

0 commit comments

Comments
 (0)