Lines Matching refs:check_syntax_error
16 function check_syntax_error (code) function
26 check_syntax_error ("let a; let b; let a");
27 check_syntax_error ("let a, b, a");
28 check_syntax_error ("var a; let a;");
29 check_syntax_error ("var a; const a = 3;");
30 check_syntax_error ("let a; var a;");
31 check_syntax_error ("const a = 3; var x, y, a;");
32 check_syntax_error ("const a");
33 check_syntax_error ("{ const a }");
34 check_syntax_error ("const a, b");
35 check_syntax_error ("let a; { let b; { var a; } }");
36 check_syntax_error ("{ { var a = 4; } }; let a = 3");
37 check_syntax_error ("function a() {}; let a;");
38 check_syntax_error ("let a; function a() {};");
39 check_syntax_error ("{ { function a() {}; let a; } }");
40 check_syntax_error ("{ { let a; function a() {}; } }");
41 check_syntax_error ("let a = 1; const b = 5; const a = 2;");
42 check_syntax_error ("try {} catch (e) { let e; }");
43 check_syntax_error ("try {} catch (e) { const e = 1; }");
44 check_syntax_error ("let A; class A {}");
45 check_syntax_error ("const A; class A {}");
46 check_syntax_error ("class A {}; let A");
47 check_syntax_error ("class A {}; const A = 1");