Debian Codegraph @

js/src/tests/non262/async-functions/await-newline.js

raw
1 // |reftest| skip-if(!xulRuntime.shell) -- needs drainJobQueue
2
3 var BUGNUMBER = 1331009;
4 var summary = "Newline is allowed between await and operand";
5
6 print(BUGNUMBER + ": " + summary);
7
8 var expr = async function foo() {
9 return await
10 10;
11 };
12 assertEventuallyEq(expr(), 10);
13
14 if (typeof reportCompare === "function")
15 reportCompare(true, true);