Lines Matching full:async
15 /* This test checks async modifiers (nothing else). */
27 check_syntax_error("function async f() {}")
28 check_syntax_error("(a,b) async => 1")
30 check_syntax_error("async * (a,b) => 1")
31 check_syntax_error("({ *async f() {} })")
32 check_syntax_error("class C { async static f() {} }")
33 check_syntax_error("class C { * async f() {} }")
34 check_syntax_error("class C { static * async f() {} }")
47 async f() { return 1 },
48 async() { return 2 },
49 async *x() {}, /* Parser test, async iterators are needed to work. */
53 assert(o.async() === 2)
56 async f() { return 3 }
57 async *x() {} /* Parser test, async iterators are needed to work. */
58 static async f() { return 4 }
59 static async *y() {} /* Parser test, async iterators are needed to work. */
60 async() { return 5 }
61 static async() { return 6 }
68 assert(c.async() === 5)
69 assert(C.async() === 6)