blob: 7ce7a8f3da452ba13ef1f7719bb56b440b3f35a7 [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