Home | History | Annotate | Download | only in mjsunit

Lines Matching defs:undefined

132 TestConflict("const x = undefined", "var x");
133 TestConflict("const x", "var x = undefined");
134 TestConflict("const x = undefined", "var x = undefined");
136 TestConflict("var x = undefined", "const x");
137 TestConflict("var x", "const x = undefined");
138 TestConflict("var x = undefined", "const x = undefined");
140 TestConflict("const x = undefined", "var x = 0");
141 TestConflict("const x = 0", "var x = undefined");
143 TestConflict("var x = undefined", "const x = 0");
144 TestConflict("var x = 0", "const x = undefined");
148 TestConflict("const x = undefined", "function x() { }");
152 TestConflict("function x() { }", "const x = undefined");
183 TestConflict("const x = undefined", "const x");
184 TestConflict("const x", "const x = undefined");
185 TestConflict("const x = undefined", "const x = undefined");
187 TestConflict("const x = undefined", "const x = 0");
188 TestConflict("const x = 0", "const x = undefined");
221 TestAll(undefined, "with ({x:42}) { const x; }", "x");
227 eval("var undefined;");
229 assertUnreachable("undefined (1) has thrown");
232 var original_undef = undefined;
233 var undefined = 1; // Should be silently ignored.
234 assertEquals(original_undef, undefined, "undefined got overwritten");
235 undefined = original_undef;
263 assertEquals(undefined,h, "h has wrong value");
279 // argument is that "const k;" is equivalent to "const k = undefined;".
280 assertEquals(undefined, k, "k has wrong value");