Home | History | Annotate | Download | only in regress

Lines Matching defs:strict

24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 // Snippet trying to switch to strict mode.
32 var strict = '"use strict"; with({}) {}';
34 // Test switching to strict mode after string literal.
35 assertThrows('function f() { "use sanity";' + strict + '}');
36 assertThrows('function f() { "use sanity";' + strict + filler + '}');
38 // Test switching to strict mode after function declaration.
41 eval('function f() { function g() {}' + strict + '}');
42 eval('function f() { function g() {}' + strict + filler + '}');