blob: d01f43cb7733412a15a38f4265198dd599db404d [file] [log] [blame]
Verify javascript outline
Running: testAsyncFunction
Text:
async function foo() { }
Outline:
async foo():0:15
Running: testAsyncArrowFunction
Text:
var sum = async (x, y) => x + y;
Outline:
async sum(x, y):0:4
Running: testGeneratorFunction
Text:
function* foo() { }
Outline:
*foo():0:10
Running: testMismatchBrackets
Text:
function foo(a, b) {
if (a > b) {
return a;
}
function bar(eee) {
foo(eee, 2 * eee);
}
Outline:
foo(a, b):1:9
bar(eee):6:9
Running: testSyntaxError
Text:
function notAGenerator(a, b) {
yield 10;
}
Outline:
notAGenerator(a, b):1:9