We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea2fc0c commit 58e33f2Copy full SHA for 58e33f2
graal-js/src/com.oracle.truffle.js.test/js/module/GR-59025.mjs
@@ -0,0 +1,16 @@
1
+/*
2
+ * Copyright (c) 2024, 2024, Oracle and/or its affiliates. All rights reserved.
3
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
+ *
5
+ * Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
6
+ */
7
+
8
+/**
9
+ * Regression test of the usage of for-await-of in the body of a module.
10
11
12
+let sum = 0;
13
+for await (let x of [42, 211]) sum += x;
14
+if (sum !== 42 + 211) {
15
+ throw new Error("Sum of 24 and 211 is not " + sum);
16
+}
0 commit comments