blob: a991cf4aeac82b4b7f254b3c5b569f3db4511841 [file] [log] [blame]
PASS 'use strict'; eval('var x = 2; typeof x'); is "number"
PASS eval('var x = 2; typeof x'); is "number"
PASS true === true
PASS 'use strict'; eval('"use strict"; var x = 2; typeof x'); is "number"
PASS eval('"use strict"; var x = 2; typeof x'); is "number"
PASS true === true
PASS 'use strict'; eval('var x = 2;'); typeof x is "undefined"
PASS eval('var x = 2;'); typeof x is "number"
PASS true === true
PASS 'use strict'; eval('"use strict"; var x = 2;'); typeof x is "undefined"
PASS eval('"use strict"; var x = 2;'); typeof x is "undefined"
PASS true === true
PASS 'use strict'; eval('"use strict"; var x = 2; typeof x'); typeof x is "undefined"
PASS eval('"use strict"; var x = 2; typeof x'); typeof x is "undefined"
PASS true === true
PASS 'use strict'; function test() { eval('var x = 2;'); return typeof x; } test(); is "undefined"
PASS function test() { eval('var x = 2;'); return typeof x; } test(); is "number"
PASS true === true
PASS 'use strict'; function test() { 'use strict'; eval('var x = 2;'); return typeof x; } test(); is "undefined"
PASS function test() { 'use strict'; eval('var x = 2;'); return typeof x; } test(); is "undefined"
PASS true === true
PASS 'use strict'; function test() { eval('"use strict"; var x = 2;'); return typeof x; } test(); is "undefined"
PASS function test() { eval('"use strict"; var x = 2;'); return typeof x; } test(); is "undefined"
PASS true === true
PASSED!
PASS successfullyParsed is true
TEST COMPLETE