Skip to content

Commit 56f3b8e

Browse files
committed
[GR-27824] Fixing typo/incorrect initialization of exceptions field.
PullRequest: js/1783
2 parents 9e9f532 + 8212792 commit 56f3b8e

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)