Skip to content

Commit 8212792

Browse files
committed
Fixing typo/incorrect initialization of exceptions field.
1 parent 9e9f532 commit 8212792

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/PromiseFunctionBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ private void iteratorClose(IteratorRecord iteratorRecord) {
211211
}
212212

213213
private boolean shouldCatch(Throwable exception) {
214-
if (getErrorObjectNode == null || exception == null) {
214+
if (getErrorObjectNode == null || exceptions == null) {
215215
CompilerDirectives.transferToInterpreterAndInvalidate();
216216
getErrorObjectNode = insert(TryCatchNode.GetErrorObjectNode.create(getContext()));
217217
exceptions = insert(InteropLibrary.getFactory().createDispatched(JSConfig.InteropLibraryLimit));

0 commit comments

Comments
 (0)