summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/parser/standalone-function-name.js
blob: e676d7cb9c54b66bc320e49359c34c378d6e33f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function test(name) {
    eval(`
function ${name}(stdlib, foreign, heap) {
    "use asm";
    var ffi = foreign.t;
    return {};
}
${name}(15, 10);
`);
}

test("as");
test("async");
test("await");
test("each");
test("from");
test("get");
test("let");
test("of");
test("set");
test("static");
test("target");