Lines Matching refs:checkSyntax
15 function checkSyntax (str) { function
41 checkSyntax ("var [a]");
42 checkSyntax ("var [a, o.a]");
43 checkSyntax ("var [a, ...b,]");
44 checkSyntax ("var [a, ...b = 4]");
45 checkSyntax ("var [a, ...[b] = 4]");
46 checkSyntax ("var [let]");
47 checkSyntax ("var [get = []");
48 checkSyntax ("var [get : 5]");
49 checkSyntax ("var [[a = {},]");
50 checkSyntax ("let [a,a] = []");
51 checkSyntax ("let [a, ...a] = []");
52 checkSyntax ("const [a,a] = []");
53 checkSyntax ("const [a, ...a] = []");
54 checkSyntax ("[new Object()] = []");
55 checkSyntax ("[Object()] = []");
56 checkSyntax ("[(a, b, d, c)] = []");
57 checkSyntax ("[super] = []");
58 checkSyntax ("[this] = []");
59 checkSyntax ("[()] = []");
60 checkSyntax ("try { let [$] = $;");
61 checkSyntax ("let a, [ b.c ] = [6];");
62 checkSyntax ("let [(a)] = [1]");