summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_7/AsyncFunctions/await-newline.js
blob: dc42fa481a2ffe746a8c1ce89b01037e5e675ff7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// |reftest| skip-if(!xulRuntime.shell) -- needs drainJobQueue

var BUGNUMBER = 1331009;
var summary = "Newline is allowed between await and operand";

print(BUGNUMBER + ": " + summary);

var expr = async function foo() {
    return await
    10;
};
assertEventuallyEq(expr(), 10);

if (typeof reportCompare === "function")
    reportCompare(true, true);