diff options
author | Brian Terlson <brian.terlson@microsoft.com> | 2014-12-05 15:50:00 -0800 |
---|---|---|
committer | Brian Terlson <brian.terlson@microsoft.com> | 2014-12-07 15:33:09 -0800 |
commit | 2a74f0ec1b671f15fc7df3e1e294a65abc8ebac8 (patch) | |
tree | 7315f60ffd86513bf163c05e4252fab0810bfbe8 /test/suite/ch10/10.4 | |
parent | da465e7399bcecd3c78fa1f5e898c9d52b4c7096 (diff) |
Reorganize ./test
Diffstat (limited to 'test/suite/ch10/10.4')
240 files changed, 0 insertions, 5567 deletions
diff --git a/test/suite/ch10/10.4/10.4.1/S10.4.1_A1_T1.js b/test/suite/ch10/10.4/10.4.1/S10.4.1_A1_T1.js deleted file mode 100644 index e303cbcef..000000000 --- a/test/suite/ch10/10.4/10.4.1/S10.4.1_A1_T1.js +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: > - Variable instantiation is performed using the global object as - the variable object and using property attributes { DontDelete } -es5id: 10.4.1_A1_T1 -description: > - Checking if deleting variable x, that is defined as var x = 1, - fails -flags: [noStrict] ----*/ - -var x = 1; - -if (this.x !== 1) { - $ERROR("#1: variable x is a property of global object"); -} - -if(delete this.x !== false){ - $ERROR("#2: variable x has property attribute DontDelete"); -} diff --git a/test/suite/ch10/10.4/10.4.1/S10.4.1_A1_T2.js b/test/suite/ch10/10.4/10.4.1/S10.4.1_A1_T2.js deleted file mode 100644 index 43ab538cb..000000000 --- a/test/suite/ch10/10.4/10.4.1/S10.4.1_A1_T2.js +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: > - Variable instantiation is performed using the global object as - the variable object and using property attributes { DontDelete } -es5id: 10.4.1_A1_T2 -description: Checking if deleting variable x, that is defined as x = 1, fails -flags: [noStrict] ----*/ - -x = 1; - -if (this.x !== 1) { - $ERROR("#1: variable x is a property of global object"); -} - -if(delete this.x !== true){ - $ERROR("#2: variable x has property attribute DontDelete"); -} diff --git a/test/suite/ch10/10.4/10.4.2/10.4.2-1-1.js b/test/suite/ch10/10.4/10.4.2/10.4.2-1-1.js deleted file mode 100644 index 59c66786f..000000000 --- a/test/suite/ch10/10.4/10.4.2/10.4.2-1-1.js +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.2-1-1 -description: Indirect call to eval has context set to global context -includes: [runTestCase.js] ----*/ - -var __10_4_2_1_1_1 = "str"; -function testcase() { - try { - - var _eval = eval; - var __10_4_2_1_1_1 = "str1"; - if(_eval("\'str\' === __10_4_2_1_1_1") === true && // indirect eval - eval("\'str1\' === __10_4_2_1_1_1") === true) { // direct eval - return true; - } - return false; - } finally { - delete this.__10_4_2_1_1_1; - } -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.2/10.4.2-1-2.js b/test/suite/ch10/10.4/10.4.2/10.4.2-1-2.js deleted file mode 100644 index 71b048d0e..000000000 --- a/test/suite/ch10/10.4/10.4.2/10.4.2-1-2.js +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.2-1-2 -description: > - Indirect call to eval has context set to global context (nested - function) -includes: [runTestCase.js] ----*/ - -var __10_4_2_1_2 = "str"; -function testcase() { - try { - - var _eval = eval; - var __10_4_2_1_2 = "str1"; - function foo() { - var __10_4_2_1_2 = "str2"; - if(_eval("\'str\' === __10_4_2_1_2") === true && // indirect eval - eval("\'str2\' === __10_4_2_1_2") === true) { // direct eval - return true; - } else { - return false; - } - } - return foo(); - } finally { - delete this.__10_4_2_1_1_2; - } - } -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.2/10.4.2-1-3.js b/test/suite/ch10/10.4/10.4.2/10.4.2-1-3.js deleted file mode 100644 index 327903e59..000000000 --- a/test/suite/ch10/10.4/10.4.2/10.4.2-1-3.js +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.2-1-3 -description: > - Indirect call to eval has context set to global context (catch - block) -includes: [runTestCase.js] ----*/ - -var __10_4_2_1_3 = "str"; -function testcase() { - - try { - - var _eval = eval; - var __10_4_2_1_3 = "str1"; - try { - throw "error"; - } - catch (e) { - var __10_4_2_1_3 = "str2"; - if (_eval("\'str\' === __10_4_2_1_3") === true && // indirect eval - eval("\'str2\' === __10_4_2_1_3") === true) { // direct eval - return true; - } else { - return false; - } - } - } finally { - delete this.__10_4_2_1_3; - } - } -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.2/10.4.2-1-4.js b/test/suite/ch10/10.4/10.4.2/10.4.2-1-4.js deleted file mode 100644 index af518a34d..000000000 --- a/test/suite/ch10/10.4/10.4.2/10.4.2-1-4.js +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.2-1-4 -description: > - Indirect call to eval has context set to global context (with - block) -includes: [runTestCase.js] ----*/ - -var __10_4_2_1_4 = "str"; -function testcase() { - try { - var o = new Object(); - o.__10_4_2_1_4 = "str2"; - var _eval = eval; - var __10_4_2_1_4 = "str1"; - with (o) { - if (_eval("\'str\' === __10_4_2_1_4") === true && // indirect eval - eval("\'str2\' === __10_4_2_1_4") === true) { // direct eval - return true; - } - } - return false; - } finally { - delete this.__10_4_2_1_4; - } - } -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.2/10.4.2-1-5.js b/test/suite/ch10/10.4/10.4.2/10.4.2-1-5.js deleted file mode 100644 index 6a7cb5587..000000000 --- a/test/suite/ch10/10.4/10.4.2/10.4.2-1-5.js +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.2-1-5 -description: > - Indirect call to eval has context set to global context (inside - another eval) -includes: [runTestCase.js] ----*/ - -var __10_4_2_1_5 = "str"; -function testcase() { - try { - - var __10_4_2_1_5 = "str1"; - var r = eval("\ - var _eval = eval; \ - var __10_4_2_1_5 = \'str2\'; \ - _eval(\"\'str\' === __10_4_2_1_5 \") && \ - eval(\"\'str2\' === __10_4_2_1_5\")\ - "); - return r; - } finally { - delete this.__10_4_2_1_5; - } - } -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.2/10.4.2-2-c-1.js b/test/suite/ch10/10.4/10.4.2/10.4.2-2-c-1.js deleted file mode 100644 index 4747e1ba6..000000000 --- a/test/suite/ch10/10.4/10.4.2/10.4.2-2-c-1.js +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.2-2-c-1 -description: > - Direct val code in non-strict mode - can instantiate variable in - calling context -includes: [runTestCase.js] ----*/ - -function testcase() { - var x = 0; - return function inner() { - eval("var x = 1"); - if (x === 1) - return true; - } (); - } -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.2/10.4.2-2-s.js b/test/suite/ch10/10.4/10.4.2/10.4.2-2-s.js deleted file mode 100644 index 0f46e9dff..000000000 --- a/test/suite/ch10/10.4/10.4.2/10.4.2-2-s.js +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.2-2-s -description: > - Strict Mode - Strict mode eval code cannot instantiate functions - in the variable environment of the caller to eval -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { - "use strict"; - eval("(function fun(x){ return x })(10)"); - return typeof (fun) === "undefined"; - } -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.2/10.4.2-3-c-1-s.js b/test/suite/ch10/10.4/10.4.2/10.4.2-3-c-1-s.js deleted file mode 100644 index 267ef99c0..000000000 --- a/test/suite/ch10/10.4/10.4.2/10.4.2-3-c-1-s.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.2-3-c-1-s -description: > - Direct eval code in strict mode - cannot instantiate variable in - the variable environment of the calling context -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { - var _10_4_2_3_c_1_s = 0; - function _10_4_2_3_c_1_sFunc() { - eval("'use strict';var _10_4_2_3_c_1_s = 1"); - return _10_4_2_3_c_1_s===0; - } - return _10_4_2_3_c_1_sFunc(); - } -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.2/10.4.2-3-c-2-s.js b/test/suite/ch10/10.4/10.4.2/10.4.2-3-c-2-s.js deleted file mode 100644 index d97f75bc8..000000000 --- a/test/suite/ch10/10.4/10.4.2/10.4.2-3-c-2-s.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.2-3-c-2-s -description: > - Calling code in strict mode - eval cannot instantiate variable in - the variable environment of the calling context -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { - var _10_4_2_3_c_2_s = 0; - function _10_4_2_3_c_2_sFunc() { - 'use strict'; - eval("var _10_4_2_3_c_2_s = 1"); - return _10_4_2_3_c_2_s===0; - } - return _10_4_2_3_c_2_sFunc(); - } -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.2/10.4.2.1-1gs.js b/test/suite/ch10/10.4/10.4.2/10.4.2.1-1gs.js deleted file mode 100644 index 75f49ccbb..000000000 --- a/test/suite/ch10/10.4/10.4.2/10.4.2.1-1gs.js +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.2.1-1gs -description: > - Strict Mode - eval code cannot instantiate variable in the - variable environment of the calling context that invoked the eval - if the code of the calling context is strict code -negative: ReferenceError -flags: [onlyStrict] ----*/ - -"use strict"; -eval("var x = 7;"); -x = 9; -throw NotEarlyError; diff --git a/test/suite/ch10/10.4/10.4.2/10.4.2.1-2-s.js b/test/suite/ch10/10.4/10.4.2/10.4.2.1-2-s.js deleted file mode 100644 index 6e824770e..000000000 --- a/test/suite/ch10/10.4/10.4.2/10.4.2.1-2-s.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.2.1-2-s -description: > - Strict Mode - Strict mode eval code cannot instantiate functions - in the variable environment of the caller to eval -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { - "use strict"; - - eval("function _10_4_2_1_2_fun(){}"); - return typeof _10_4_2_1_2_fun === "undefined"; - } -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.2/10.4.2.1-4-s.js b/test/suite/ch10/10.4/10.4.2/10.4.2.1-4-s.js deleted file mode 100644 index bc92701ee..000000000 --- a/test/suite/ch10/10.4/10.4.2/10.4.2.1-4-s.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.2.1-4-s -description: > - Strict Mode - Strict mode eval code cannot instantiate functions - in the variable environment of the caller to eval which is - contained in strict mode code -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { - - eval("'use strict'; function _10_4_2_1_4_fun(){}"); - return typeof _10_4_2_1_4_fun === "undefined"; - } -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2.1_A1.js b/test/suite/ch10/10.4/10.4.2/S10.4.2.1_A1.js deleted file mode 100644 index 175b5e954..000000000 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2.1_A1.js +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright 2011 Google Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 10.4.2.1_A1 -description: > - Strict indirect eval should not leak top level declarations into - the global scope -flags: [onlyStrict] ----*/ - -"use strict"; -if (!('foo' in this)) { - (1,eval)('"use strict"; var foo = 88;'); - if ('foo' in this) { - $ERROR("Strict indirect eval leaked a top level declaration"); - } -} diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T1.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T1.js deleted file mode 100644 index 1e085af9d..000000000 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T1.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: > - The scope chain is initialised to contain the same objects, - in the same order, as the calling context's scope chain -es5id: 10.4.2_A1.1_T1 -description: eval within global execution context ----*/ - -var i; -var j; -str1 = ''; -str2 = ''; -x = 1; -y = 2; - -for(i in this){ - str1+=i; -} - -eval('for(j in this){\nstr2+=j;\n}'); - -if(!(str1 === str2)){ - $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); -} diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T10.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T10.js deleted file mode 100644 index fe2d03eac..000000000 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T10.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: > - The scope chain is initialised to contain the same objects, - in the same order, as the calling context's scope chain -es5id: 10.4.2_A1.1_T10 -description: eval within global execution context ----*/ - -var i; -var j; -str1 = ''; -str2 = ''; -var x = 1; -var y = 2; - -for(i in this){ - str1+=i; -} - -eval('for(j in this){\nstr2+=j;\n}'); - -if(!(str1 === str2)){ - $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); -} diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T11.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T11.js deleted file mode 100644 index f14070093..000000000 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T11.js +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: > - The scope chain is initialised to contain the same objects, - in the same order, as the calling context's scope chain -es5id: 10.4.2_A1.1_T11 -description: eval within global execution context ----*/ - -var i; -var j; -str1 = ''; -str2 = ''; - -for(i in this){ - str1+=i; -} - -eval('for(j in this){\nstr2+=j;\n}'); - -if(!(str1 === str2)){ - $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); -} - -this.x = 1; -this.y = 2; diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T2.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T2.js deleted file mode 100644 index 811ebfa60..000000000 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T2.js +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: > - The scope chain is initialised to contain the same objects, - in the same order, as the calling context's scope chain -es5id: 10.4.2_A1.1_T2 -description: eval within global execution context ----*/ - -var i; -var j; -str1 = ''; -str2 = ''; - -for(i in this){ - str1+=i; -} - -eval('for(j in this){\nstr2+=j;\n}'); - -if(!(str1 === str2)){ - $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); -} - -var x = 1; -var y = 2; diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T3.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T3.js deleted file mode 100644 index 6b5572d04..000000000 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T3.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: > - The scope chain is initialised to contain the same objects, - in the same order, as the calling context's scope chain -es5id: 10.4.2_A1.1_T3 -description: eval within global execution context ----*/ - -var i; -var j; -str1 = ''; -str2 = ''; -this.x = 1; -this.y = 2; - -for(i in this){ - str1+=i; -} - -eval('for(j in this){\nstr2+=j;\n}'); - -if(!(str1 === str2)){ - $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); -} diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T4.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T4.js deleted file mode 100644 index 0226e73da..000000000 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T4.js +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: > - The scope chain is initialised to contain the same objects, - in the same order, as the calling context's scope chain -es5id: 10.4.2_A1.1_T4 -description: eval within global execution context ----*/ - -var i; -var j; -str1 = ''; -str2 = ''; -x = 1; - -for(i in this){ - str1+=i; -} - -eval('for(j in this){\nstr2+=j;\n}'); - -if(!(str1 === str2)){ - $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); -} - -y = 2; diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T5.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T5.js deleted file mode 100644 index 56479a22c..000000000 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T5.js +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: > - The scope chain is initialised to contain the same objects, - in the same order, as the calling context's scope chain -es5id: 10.4.2_A1.1_T5 -description: eval within global execution context ----*/ - -var i; -var j; -str1 = ''; -str2 = ''; -var x = 1; - -for(i in this){ - str1+=i; -} - -eval('for(j in this){\nstr2+=j;\n}'); - -if(!(str1 === str2)){ - $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); -} - -var y = 2; diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T6.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T6.js deleted file mode 100644 index 0b8cfd045..000000000 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T6.js +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: > - The scope chain is initialised to contain the same objects, - in the same order, as the calling context's scope chain -es5id: 10.4.2_A1.1_T6 -description: eval within global execution context ----*/ - -var i; -var j; -str1 = ''; -str2 = ''; -this.x = 1; - -for(i in this){ - str1+=i; -} - -eval('for(j in this){\nstr2+=j;\n}'); - -if(!(str1 === str2)){ - $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); -} - -this.y = 2; diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T7.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T7.js deleted file mode 100644 index c0aa55401..000000000 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T7.js +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: > - The scope chain is initialised to contain the same objects, - in the same order, as the calling context's scope chain -es5id: 10.4.2_A1.1_T7 -description: eval within global execution context ----*/ - -var i; -var j; -str1 = ''; -str2 = ''; -x = 1; - -for(i in this){ - str1+=i; -} - -eval('for(j in this){\nstr2+=j;\n}'); - -if(!(str1 === str2)){ - $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); -} - -var y = 2; diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T8.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T8.js deleted file mode 100644 index a6e452c70..000000000 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T8.js +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: > - The scope chain is initialised to contain the same objects, - in the same order, as the calling context's scope chain -es5id: 10.4.2_A1.1_T8 -description: eval within global execution context ----*/ - -var i; -var j; -str1 = ''; -str2 = ''; -this.x = 1; - -for(i in this){ - str1+=i; -} - -eval('for(j in this){\nstr2+=j;\n}'); - -if(!(str1 === str2)){ - $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); -} - -var y = 2; diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T9.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T9.js deleted file mode 100644 index 83bd435e0..000000000 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T9.js +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: > - The scope chain is initialised to contain the same objects, - in the same order, as the calling context's scope chain -es5id: 10.4.2_A1.1_T9 -description: eval within global execution context ----*/ - -var i; -var j; -str1 = ''; -str2 = ''; - -for(i in this){ - str1+=i; -} - -eval('for(j in this){\nstr2+=j;\n}'); - -if(!(str1 === str2)){ - $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); -} - -x = 1; -y = 2; diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T1.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T1.js deleted file mode 100644 index d670a5fac..000000000 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T1.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: > - The scope chain is initialised to contain the same objects, - in the same order, as the calling context's scope chain -es5id: 10.4.2_A1.2_T1 -description: eval within global execution context ----*/ - -function f(){ - var i; - var j; - str1 = ''; - str2 = ''; - x = 1; - y = 2; - - for(i in this){ - str1+=i; - } - - eval('for(j in this){\nstr2+=j;\n}'); - return (str1 === str2); -} - -if(!f()){ - $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); -} diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T10.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T10.js deleted file mode 100644 index 2a1caa67a..000000000 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T10.js +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: > - The scope chain is initialised to contain the same objects, - in the same order, as the calling context's scope chain -es5id: 10.4.2_A1.2_T10 -description: eval within global execution context ----*/ - -function f(){ - var i; - var j; - str1 = ''; - str2 = ''; - var x = 1; - var y = 2; - - for(i in this){ - str1+=i; - } - - eval('for(j in this){\nstr2+=j;\n}'); - - return (str1 === str2); -} - -if(!f()){ - $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); -} diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T11.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T11.js deleted file mode 100644 index 9e80ebb48..000000000 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T11.js +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: > - The scope chain is initialised to contain the same objects, - in the same order, as the calling context's scope chain -es5id: 10.4.2_A1.2_T11 -description: eval within global execution context -flags: [noStrict] ----*/ - -function f(){ - var i; - var j; - str1 = ''; - str2 = ''; - - for(i in this){ - str1+=i; - } - - eval('for(j in this){\nstr2+=j;\n}'); - - return (str1 === str2); - - this.x = 1; - this.y = 2; -} - -if(!f()){ - $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); -} diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T2.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T2.js deleted file mode 100644 index 070b1822e..000000000 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T2.js +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: > - The scope chain is initialised to contain the same objects, - in the same order, as the calling context's scope chain -es5id: 10.4.2_A1.2_T2 -description: eval within global execution context ----*/ - -function f(){ - var i; - var j; - str1 = ''; - str2 = ''; - - for(i in this){ - str1+=i; - } - - eval('for(j in this){\nstr2+=j;\n}'); - - return (str1 === str2); - var x = 1; - var y = 2; -} - -if(!f()){ - $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); -} diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T3.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T3.js deleted file mode 100644 index 1d685682d..000000000 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T3.js +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: > - The scope chain is initialised to contain the same objects, - in the same order, as the calling context's scope chain -es5id: 10.4.2_A1.2_T3 -description: eval within global execution context ----*/ - -function f(){ - var i; - var j; - str1 = ''; - str2 = ''; - this.x = 1; - this.y = 2; - - for(i in this){ - str1+=i; - } - - eval('for(j in this){\nstr2+=j;\n}'); - - return (str1 === str2); -} - -if(!f()){ - $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); -} diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T4.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T4.js deleted file mode 100644 index 9bd33e38b..000000000 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T4.js +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: > - The scope chain is initialised to contain the same objects, - in the same order, as the calling context's scope chain -es5id: 10.4.2_A1.2_T4 -description: eval within global execution context ----*/ - -function f(){ - var i; - var j; - str1 = ''; - str2 = ''; - x = 1; - - for(i in this){ - str1+=i; - } - - eval('for(j in this){\nstr2+=j;\n}'); - - return (str1 === str2); - - y = 2; -} - -if(!f()){ - $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); -} diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T5.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T5.js deleted file mode 100644 index ad9759a29..000000000 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T5.js +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: > - The scope chain is initialised to contain the same objects, - in the same order, as the calling context's scope chain -es5id: 10.4.2_A1.2_T5 -description: eval within global execution context ----*/ - -function f(){ - var i; - var j; - str1 = ''; - str2 = ''; - var x = 1; - - for(i in this){ - str1+=i; - } - - eval('for(j in this){\nstr2+=j;\n}'); - - return (str1 === str2); - - var y = 2; -} - -if(!f()){ - $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); -} diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T6.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T6.js deleted file mode 100644 index 03ecd0ff3..000000000 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T6.js +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: > - The scope chain is initialised to contain the same objects, - in the same order, as the calling context's scope chain -es5id: 10.4.2_A1.2_T6 -description: eval within global execution context ----*/ - -function f(){ - var i; - var j; - str1 = ''; - str2 = ''; - this.x = 1; - - for(i in this){ - str1+=i; - } - - eval('for(j in this){\nstr2+=j;\n}'); - - return (str1 === str2); - - this.y = 2; -} - -if(!f()){ - $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); -} diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T7.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T7.js deleted file mode 100644 index dd3f344ec..000000000 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T7.js +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: > - The scope chain is initialised to contain the same objects, - in the same order, as the calling context's scope chain -es5id: 10.4.2_A1.2_T7 -description: eval within global execution context ----*/ - -function f(){ - var i; - var j; - str1 = ''; - str2 = ''; - x = 1; - - for(i in this){ - str1+=i; - } - - eval('for(j in this){\nstr2+=j;\n}'); - - return (str1 === str2); - - var y = 2; -} - -if(!f()){ - $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); -} diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T8.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T8.js deleted file mode 100644 index 980213654..000000000 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T8.js +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: > - The scope chain is initialised to contain the same objects, - in the same order, as the calling context's scope chain -es5id: 10.4.2_A1.2_T8 -description: eval within global execution context ----*/ - -function f(){ - var i; - var j; - str1 = ''; - str2 = ''; - this.x = 1; - - for(i in this){ - str1+=i; - } - - eval('for(j in this){\nstr2+=j;\n}'); - - return (str1 === str2); - - var y = 2; -} - -if(!f()){ - $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); -} diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T9.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T9.js deleted file mode 100644 index 56018e52b..000000000 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T9.js +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: > - The scope chain is initialised to contain the same objects, - in the same order, as the calling context's scope chain -es5id: 10.4.2_A1.2_T9 -description: eval within global execution context ----*/ - -function f(){ - var i; - var j; - str1 = ''; - str2 = ''; - - for(i in this){ - str1+=i; - } - - eval('for(j in this){\nstr2+=j;\n}'); - - return (str1 === str2); - - x = 1; - y = 2; -} - -if(!f()){ - $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-1-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-1-s.js deleted file mode 100644 index 7507204c6..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-1-s.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-1-s -description: this is not coerced to an object in strict mode (Number) -flags: [noStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { - - function foo() - { - 'use strict'; - return typeof(this); - } - - function bar() - { - return typeof(this); - } - - - return foo.call(1) === 'number' && bar.call(1) === 'object'; - } -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-10-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-10-s.js deleted file mode 100644 index 5067e2ee9..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-10-s.js +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-10-s -description: > - Strict Mode - checking 'this' (FunctionExpression includes strict - directive prologue) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -var f = function () { - "use strict"; - return typeof this; -} -return f() === "undefined"; -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-100-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-100-s.js deleted file mode 100644 index e5dbb0047..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-100-s.js +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-100-s -description: > - Strict Mode - checking 'this' (strict function passed as arg to - String.prototype.replace from non-strict context) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -var x = 3; - -function f() { - "use strict"; - x = this; - return "a"; -} -return ("ab".replace("b", f)==="aa") && (x===undefined); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-100gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-100gs.js deleted file mode 100644 index 5ddbc42a1..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-100gs.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-100gs -description: > - Strict Mode - checking 'this' (strict function passed as arg to - String.prototype.replace from non-strict context) -flags: [onlyStrict] ----*/ - -var x = 3; - -function f() { - "use strict"; - x = this; - return "a"; -} -if (("ab".replace("b", f)!=="aa") || (x!==undefined)) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-101-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-101-s.js deleted file mode 100644 index 7f3f96eb8..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-101-s.js +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-101-s -description: > - Strict Mode - checking 'this' (non-strict function passed as arg - to String.prototype.replace from strict context) -flags: [noStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -var x = 3; - -function f() { - x = this; - return "a"; -} - -return (function() {"use strict"; return "ab".replace("b", f)==="aa";}()) && (x===fnGlobalObject()); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-101gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-101gs.js deleted file mode 100644 index 4c9c147ff..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-101gs.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-101gs -description: > - Strict Mode - checking 'this' (non-strict function passed as arg - to String.prototype.replace from strict context) -flags: [noStrict] -includes: [fnGlobalObject.js] ----*/ - -var x = 3; - -function f() { - x = this; - return "a"; -} - -if ( (!(function() {"use strict"; return "ab".replace("b", f)==="aa";}())) || (x!==fnGlobalObject())) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-102-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-102-s.js deleted file mode 100644 index 683a9621a..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-102-s.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-102-s -description: > - Strict Mode - checking 'this' (strict anonymous function passed as - arg to String.prototype.replace from non-strict context) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -var x = 3; - -return ("ab".replace("b", (function () { - "use strict"; - return function () { - x = this; - return "a"; - } - })())==="aa") && (x===undefined); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-102gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-102gs.js deleted file mode 100644 index 6f8e27e25..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-102gs.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-102gs -description: > - Strict Mode - checking 'this' (strict anonymous function passed as - arg to String.prototype.replace from non-strict context) -flags: [onlyStrict] ----*/ - -var x = 3; -if ( ("ab".replace("b", (function () { - "use strict"; - return function () { - x = this; - return "a"; - } - })())!=="aa") || (x!==undefined)) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-103.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-103.js deleted file mode 100644 index 885d3b8ea..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-103.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-103 -description: > - Non strict mode should ToObject thisArg if not an object. - Abstract equality operator should succeed. -includes: [runTestCase.js] ----*/ - -function testcase(){ - Object.defineProperty(Object.prototype, "x", { get: function () { return this; } }); - if((5).x == 0) return false; - if(!((5).x == 5)) return false; - return true; -} - -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-104.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-104.js deleted file mode 100644 index db504bb44..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-104.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-104 -description: > - Strict mode should not ToObject thisArg if not an object. Strict - equality operator should succeed. -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase(){ - Object.defineProperty(Object.prototype, "x", { get: function () { "use strict"; return this; } }); - if(!((5).x === 5)) return false; - return true; -} - -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-105.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-105.js deleted file mode 100644 index 5d5479d0b..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-105.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -info: > - Created based on feedback in - https://bugs.ecmascript.org/show_bug.cgi?id=333 -es5id: 10.4.3-1-105 -description: > - Non strict mode should ToObject thisArg if not an object. Return - type should be object and strict equality should fail. -includes: [runTestCase.js] ----*/ - -function testcase(){ - Object.defineProperty(Object.prototype, "x", { get: function () { return this; } }); - if((5).x === 5) return false; - if(!(typeof (5).x === "object")) return false; - return true; -} - -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-106.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-106.js deleted file mode 100644 index c5ea985e1..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-106.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -info: > - Created based on feedback in - https://bugs.ecmascript.org/show_bug.cgi?id=333 -es5id: 10.4.3-1-106 -description: > - Strict mode should not ToObject thisArg if not an object. Return - type should be 'number'. -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase(){ - Object.defineProperty(Object.prototype, "x", { get: function () { "use strict"; return this; } }); - if(!(typeof (5).x === "number")) return false; - return true; -} - -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-10gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-10gs.js deleted file mode 100644 index e66ac27d1..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-10gs.js +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-10gs -description: > - Strict - checking 'this' from a global scope (FunctionExpression - includes strict directive prologue) -flags: [onlyStrict] ----*/ - -var f = function () { - "use strict"; - return typeof this; -} -if (f() !== "undefined") { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-11-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-11-s.js deleted file mode 100644 index 787ecaf9f..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-11-s.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-11-s -description: > - Strict Mode - checking 'this' (Anonymous FunctionExpression - defined within strict mode) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -"use strict"; -return (function () { - return typeof this; -})() === "undefined"; -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-11gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-11gs.js deleted file mode 100644 index a340500e1..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-11gs.js +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-11gs -description: > - Strict - checking 'this' from a global scope (Anonymous - FunctionExpression defined within strict mode) -flags: [onlyStrict] ----*/ - -"use strict"; -if ((function () { - return typeof this; -})() !== "undefined") { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-12-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-12-s.js deleted file mode 100644 index 971fad946..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-12-s.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-12-s -description: > - Strict Mode - checking 'this' (Anonymous FunctionExpression - includes strict directive prologue) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -return (function () { - "use strict"; - return typeof this; -})() === "undefined"; -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-12gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-12gs.js deleted file mode 100644 index dafa25b3b..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-12gs.js +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-12gs -description: > - Strict - checking 'this' from a global scope (Anonymous - FunctionExpression includes strict directive prologue) -flags: [onlyStrict] ----*/ - -if ((function () { - "use strict"; - return typeof this; -})() !== "undefined") { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-13-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-13-s.js deleted file mode 100644 index 1f81da5ae..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-13-s.js +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-13-s -description: > - Strict Mode - checking 'this' (Function constructor defined within - strict mode) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -"use strict"; -var f = Function("return typeof this;"); -return f() !== "undefined"; -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-13gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-13gs.js deleted file mode 100644 index 98c5d565c..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-13gs.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-13gs -description: > - Strict - checking 'this' from a global scope (Function constructor - defined within strict mode) -flags: [onlyStrict] ----*/ - -"use strict"; -var f = Function("return typeof this;"); -if (f() === "undefined") { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-14-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-14-s.js deleted file mode 100644 index 5012e6cfc..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-14-s.js +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-14-s -description: > - Strict Mode - checking 'this' (Function constructor includes - strict directive prologue) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -var f = Function("\"use strict\";\nreturn typeof this;"); -return f() === "undefined"; -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-14gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-14gs.js deleted file mode 100644 index dd374264b..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-14gs.js +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-14gs -description: > - Strict - checking 'this' from a global scope (Function constructor - includes strict directive prologue) -flags: [onlyStrict] ----*/ - -var f = Function("\"use strict\";\nreturn typeof this;"); -if (f() !== "undefined") { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-15-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-15-s.js deleted file mode 100644 index 441e10b03..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-15-s.js +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-15-s -description: > - Strict Mode - checking 'this' (New'ed Function constructor defined - within strict mode) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -"use strict"; -var f = new Function("return typeof this;"); -return f() !== "undefined"; -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-15gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-15gs.js deleted file mode 100644 index 5a5d56f8b..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-15gs.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-15gs -description: > - Strict - checking 'this' from a global scope (New'ed Function - constructor defined within strict mode) -flags: [onlyStrict] ----*/ - -"use strict"; -var f = new Function("return typeof this;"); -if (f() === "undefined") { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-16-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-16-s.js deleted file mode 100644 index b6677acef..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-16-s.js +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-16-s -description: > - Strict Mode - checking 'this' (New'ed Function constructor - includes strict directive prologue) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -var f = new Function("\"use strict\";\nreturn typeof this;"); -return f() === "undefined"; -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-16gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-16gs.js deleted file mode 100644 index 379be40f9..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-16gs.js +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-16gs -description: > - Strict - checking 'this' from a global scope (New'ed Function - constructor includes strict directive prologue) -flags: [onlyStrict] ----*/ - -var f = new Function("\"use strict\";\nreturn typeof this;"); -if (f() !== "undefined") { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-17-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-17-s.js deleted file mode 100644 index 890dff1ec..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-17-s.js +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-17-s -description: Strict Mode - checking 'this' (eval used within strict mode) -flags: [onlyStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -"use strict"; -return (eval("typeof this") === "undefined") && (eval("this") !== fnGlobalObject()); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-17gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-17gs.js deleted file mode 100644 index 3f4397f68..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-17gs.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-17gs -description: > - Strict - checking 'this' from a global scope (eval used within - strict mode) -flags: [onlyStrict] -includes: [fnGlobalObject.js] ----*/ - -"use strict"; -if (eval("this") !== fnGlobalObject()) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-18gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-18gs.js deleted file mode 100644 index cdd174920..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-18gs.js +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-18gs -description: > - Strict - checking 'this' from a global scope (eval includes strict - directive prologue) -flags: [onlyStrict] -includes: [fnGlobalObject.js] ----*/ - -if (eval("\"use strict\";\nthis") !== fnGlobalObject()) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-19-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-19-s.js deleted file mode 100644 index 3eeb1111c..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-19-s.js +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-19-s -description: > - Strict Mode - checking 'this' (indirect eval used within strict - mode) -flags: [onlyStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -"use strict"; -var my_eval = eval; -return my_eval("this") === fnGlobalObject(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-19gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-19gs.js deleted file mode 100644 index f590daf7d..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-19gs.js +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-19gs -description: > - Strict - checking 'this' from a global scope (indirect eval used - within strict mode) -flags: [onlyStrict] -includes: [fnGlobalObject.js] ----*/ - -"use strict"; -var my_eval = eval; -if (my_eval("this") !== fnGlobalObject()) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-2-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-2-s.js deleted file mode 100644 index 631ebabf9..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-2-s.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-2-s -description: this is not coerced to an object in strict mode (string) -flags: [noStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { - - function foo() - { - 'use strict'; - return typeof(this); - } - - function bar() - { - return typeof(this); - } - - - return foo.call('1') === 'string' && bar.call('1') === 'object'; - } -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-20-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-20-s.js deleted file mode 100644 index 1ad081812..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-20-s.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-20-s -description: > - Strict Mode - checking 'this' (indirect eval includes strict - directive prologue) -flags: [onlyStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -var my_eval = eval; -return my_eval("\"use strict\";\nthis") === fnGlobalObject(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-20gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-20gs.js deleted file mode 100644 index a8fcd8367..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-20gs.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-20gs -description: > - Strict - checking 'this' from a global scope (indirect eval - includes strict directive prologue) -flags: [onlyStrict] -includes: [fnGlobalObject.js] ----*/ - -var my_eval = eval; -if (my_eval("\"use strict\";\nthis") !== fnGlobalObject() ) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-21-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-21-s.js deleted file mode 100644 index 228a9e963..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-21-s.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-21-s -description: > - Strict Mode - checking 'this' (New'ed object from - FunctionDeclaration defined within strict mode) -flags: [onlyStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -"use strict"; -function f() { - return this; -} -return ( (new f())!==fnGlobalObject()) && (typeof (new f()) !== "undefined"); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-21gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-21gs.js deleted file mode 100644 index d5adf0316..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-21gs.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-21gs -description: > - Strict - checking 'this' from a global scope (New'ed object from - FunctionDeclaration defined within strict mode) -flags: [onlyStrict] -includes: [fnGlobalObject.js] ----*/ - -"use strict"; -function f() { - return this; -} -if (((new f()) === fnGlobalObject()) || (typeof (new f()) === "undefined")) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-22-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-22-s.js deleted file mode 100644 index 170c680da..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-22-s.js +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-22-s -description: > - Strict Mode - checking 'this' (New'ed object from - FunctionDeclaration includes strict directive prologue) -flags: [onlyStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -function f() { - "use strict"; - return this; -} -return ( (new f())!==fnGlobalObject()) && (typeof (new f()) !== "undefined"); - -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-22gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-22gs.js deleted file mode 100644 index 92eacaf00..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-22gs.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-22gs -description: > - Strict - checking 'this' from a global scope (New'ed object from - FunctionDeclaration includes strict directive prologue) -flags: [onlyStrict] -includes: [fnGlobalObject.js] ----*/ - -function f() { - "use strict"; - return this; -} -if (((new f()) === fnGlobalObject()) || (typeof (new f()) === "undefined")) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-23-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-23-s.js deleted file mode 100644 index 9ac3fa3f4..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-23-s.js +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-23-s -description: > - Strict Mode - checking 'this' (New'ed object from - FunctionExpression defined within strict mode) -flags: [onlyStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -"use strict"; -var f = function () { - return this; -} -return ( (new f())!==fnGlobalObject()) && (typeof (new f()) !== "undefined"); - -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-23gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-23gs.js deleted file mode 100644 index c3831a6be..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-23gs.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-23gs -description: > - Strict - checking 'this' from a global scope (New'ed object from - FunctionExpression defined within strict mode) -flags: [onlyStrict] -includes: [fnGlobalObject.js] ----*/ - -"use strict"; -var f = function () { - return this; -} -if (((new f()) === fnGlobalObject()) || (typeof (new f()) === "undefined")) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-24-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-24-s.js deleted file mode 100644 index 7f25e9960..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-24-s.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-24-s -description: > - Strict Mode - checking 'this' (New'ed object from - FunctionExpression includes strict directive prologue) -flags: [onlyStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -var f = function () { - "use strict"; - return this; -} -return ( (new f())!==fnGlobalObject()) && (typeof (new f()) !== "undefined"); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-24gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-24gs.js deleted file mode 100644 index af9dbfbf9..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-24gs.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-24gs -description: > - Strict - checking 'this' from a global scope (New'ed object from - FunctionExpression includes strict directive prologue) -flags: [onlyStrict] -includes: [fnGlobalObject.js] ----*/ - -var f = function () { - "use strict"; - return this; -} -if (((new f()) === fnGlobalObject()) || (typeof (new f()) === "undefined")) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-25-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-25-s.js deleted file mode 100644 index ad6d42e83..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-25-s.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-25-s -description: > - Strict Mode - checking 'this' (New'ed object from Anonymous - FunctionExpression defined within strict mode) -flags: [onlyStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -"use strict"; -var obj = new (function () { - return this; -}); -return (obj !== fnGlobalObject()) && ((typeof obj) !== "undefined"); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-25gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-25gs.js deleted file mode 100644 index 2425d30b6..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-25gs.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-25gs -description: > - Strict - checking 'this' from a global scope (New'ed object from - Anonymous FunctionExpression defined within strict mode) -flags: [onlyStrict] -includes: [fnGlobalObject.js] ----*/ - -"use strict"; -var obj = new (function () { - return this; -}); -if ((obj === fnGlobalObject()) || (typeof obj === "undefined")) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-26-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-26-s.js deleted file mode 100644 index 0872b4470..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-26-s.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-26-s -description: > - Strict Mode - checking 'this' (New'ed object from Anonymous - FunctionExpression includes strict directive prologue) -flags: [onlyStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -var obj = new (function () { - "use strict"; - return this; -}); -return (obj !== fnGlobalObject()) && ((typeof obj) !== "undefined"); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-26gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-26gs.js deleted file mode 100644 index 4f1357c72..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-26gs.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-26gs -description: > - Strict - checking 'this' from a global scope (New'ed object from - Anonymous FunctionExpression includes strict directive prologue) -flags: [onlyStrict] -includes: [fnGlobalObject.js] ----*/ - -var obj = new (function () { - "use strict"; - return this; -}); -if ((obj === fnGlobalObject()) || (typeof obj === "undefined")) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-27-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-27-s.js deleted file mode 100644 index dd5709a11..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-27-s.js +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-27-s -description: > - Strict Mode - checking 'this' (FunctionDeclaration defined within - a FunctionDeclaration inside strict mode) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -"use strict"; -function f1() { - function f() { - return typeof this; - } - return (f()==="undefined") && ((typeof this)==="undefined"); -} -return f1(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-27gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-27gs.js deleted file mode 100644 index 102880e9f..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-27gs.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-27gs -description: > - Strict - checking 'this' from a global scope (FunctionDeclaration - defined within a FunctionDeclaration inside strict mode) -flags: [onlyStrict] ----*/ - -"use strict"; -function f1() { - function f() { - return typeof this; - } - return (f()==="undefined") && ((typeof this)==="undefined"); -} -if (! f1()) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-28-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-28-s.js deleted file mode 100644 index c4dc405e1..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-28-s.js +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-28-s -description: > - Strict Mode - checking 'this' (FunctionExpression defined within a - FunctionDeclaration inside strict mode) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -"use strict"; -function f1() { - var f = function () { - return typeof this; - } - return (f()==="undefined") && ((typeof this)==="undefined"); -} -return f1(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-28gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-28gs.js deleted file mode 100644 index dc5014ef2..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-28gs.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-28gs -description: > - Strict - checking 'this' from a global scope (FunctionExpression - defined within a FunctionDeclaration inside strict mode) -flags: [onlyStrict] ----*/ - -"use strict"; -function f1() { - var f = function () { - return typeof this; - } - return (f()==="undefined") && ((typeof this)==="undefined"); -} -if (! f1()) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-29-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-29-s.js deleted file mode 100644 index 25e62e418..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-29-s.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-29-s -description: > - Strict Mode - checking 'this' (Anonymous FunctionExpression - defined within a FunctionDeclaration inside strict mode) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -"use strict"; -function f1() { - return ((function () { - return typeof this; - })()==="undefined") && ((typeof this)==="undefined"); -} -return f1(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-29gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-29gs.js deleted file mode 100644 index a148602bb..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-29gs.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-29gs -description: > - Strict - checking 'this' from a global scope (Anonymous - FunctionExpression defined within a FunctionDeclaration inside - strict mode) -flags: [onlyStrict] ----*/ - -"use strict"; -function f1() { - return ((function () { - return typeof this; - })()==="undefined") && ((typeof this)==="undefined"); -} -if (! f1()) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-3-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-3-s.js deleted file mode 100644 index b978fcee0..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-3-s.js +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-3-s -description: this is not coerced to an object in strict mode (undefined) -flags: [noStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { - - function foo() - { - 'use strict'; - return typeof(this); - } - - function bar() - { - return typeof(this); - } - return foo.call(undefined) === 'undefined' && bar.call() === 'object'; - } -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-30-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-30-s.js deleted file mode 100644 index 54e527dd1..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-30-s.js +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-30-s -description: > - Strict Mode - checking 'this' (FunctionDeclaration defined within - a FunctionExpression inside strict mode) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -"use strict"; -var f1 = function () { - function f() { - return typeof this; - } - return (f()==="undefined") && ((typeof this)==="undefined"); -} -return f1(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-30gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-30gs.js deleted file mode 100644 index 5fedb0733..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-30gs.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-30gs -description: > - Strict - checking 'this' from a global scope (FunctionDeclaration - defined within a FunctionExpression inside strict mode) -flags: [onlyStrict] ----*/ - -"use strict"; -var f1 = function () { - function f() { - return typeof this; - } - return (f()==="undefined") && ((typeof this)==="undefined"); -} -if (! f1()) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-31-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-31-s.js deleted file mode 100644 index ca989d4b3..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-31-s.js +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-31-s -description: > - Strict Mode - checking 'this' (FunctionExpression defined within a - FunctionExpression inside strict mode) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -"use strict"; -var f1 = function () { - var f = function () { - return typeof this; - } - return (f()==="undefined") && ((typeof this)==="undefined"); -} -return f1(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-31gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-31gs.js deleted file mode 100644 index aa5284c2e..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-31gs.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-31gs -description: > - Strict - checking 'this' from a global scope (FunctionExpression - defined within a FunctionExpression inside strict mode) -flags: [onlyStrict] ----*/ - -"use strict"; -var f1 = function () { - var f = function () { - return typeof this; - } - return (f()==="undefined") && ((typeof this)==="undefined"); -} -if (! f1()) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-32-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-32-s.js deleted file mode 100644 index 6a4801c14..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-32-s.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-32-s -description: > - Strict Mode - checking 'this' (Anonymous FunctionExpression - defined within a FunctionExpression inside strict mode) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -"use strict"; -var f1 = function () { - return ((function () { - return typeof this; - })()==="undefined") && ((typeof this)==="undefined"); -} -return f1(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-32gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-32gs.js deleted file mode 100644 index b0c542a45..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-32gs.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-32gs -description: > - Strict - checking 'this' from a global scope (Anonymous - FunctionExpression defined within a FunctionExpression inside - strict mode) -flags: [onlyStrict] ----*/ - -"use strict"; -var f1 = function () { - return ((function () { - return typeof this; - })()==="undefined") && ((typeof this)==="undefined"); -} -if (! f1()) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-33-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-33-s.js deleted file mode 100644 index a6104e8ea..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-33-s.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-33-s -description: > - Strict Mode - checking 'this' (FunctionDeclaration defined within - an Anonymous FunctionExpression inside strict mode) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -"use strict"; -return (function () { - function f() { - return typeof this; - } - return (f()==="undefined") && ((typeof this)==="undefined"); -})(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-33gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-33gs.js deleted file mode 100644 index 83f073aef..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-33gs.js +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-33gs -description: > - Strict - checking 'this' from a global scope (FunctionDeclaration - defined within an Anonymous FunctionExpression inside strict mode) -flags: [onlyStrict] ----*/ - -"use strict"; -if (! ((function () { - function f() { - return typeof this; - } - return (f()==="undefined") && ((typeof this)==="undefined"); -})())) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-34-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-34-s.js deleted file mode 100644 index 94744f6b7..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-34-s.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-34-s -description: > - Strict Mode - checking 'this' (FunctionExpression defined within - an Anonymous FunctionExpression inside strict mode) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -"use strict"; -return (function () { - var f = function () { - return typeof this; - } - return (f()==="undefined") && ((typeof this)==="undefined"); -})(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-34gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-34gs.js deleted file mode 100644 index 0e94df525..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-34gs.js +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-34gs -description: > - Strict - checking 'this' from a global scope (FunctionExpression - defined within an Anonymous FunctionExpression inside strict mode) -flags: [onlyStrict] ----*/ - -"use strict"; -if (! ((function () { - var f = function () { - return typeof this; - } - return (f()==="undefined") && ((typeof this)==="undefined"); -})())) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-35-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-35-s.js deleted file mode 100644 index 3d7a2fbd5..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-35-s.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-35-s -description: > - Strict Mode - checking 'this' (Anonymous FunctionExpression - defined within an Anonymous FunctionExpression inside strict mode) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -"use strict"; -return (function () { - return ((function () { - return typeof this; - })()==="undefined") && ((typeof this)==="undefined"); -})(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-35gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-35gs.js deleted file mode 100644 index 7c67755e1..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-35gs.js +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-35gs -description: > - Strict - checking 'this' from a global scope (Anonymous - FunctionExpression defined within an Anonymous FunctionExpression - inside strict mode) -flags: [onlyStrict] ----*/ - -"use strict"; -if (! ((function () { - return ((function () { - return typeof this; - })()==="undefined") && ((typeof this)==="undefined"); -})())) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-36-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-36-s.js deleted file mode 100644 index 9c88cbe47..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-36-s.js +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-36-s -description: > - Strict Mode - checking 'this' (FunctionDeclaration defined within - a FunctionDeclaration with a strict directive prologue) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -function f1() { - "use strict"; - function f() { - return typeof this; - } - return (f()==="undefined") && ((typeof this)==="undefined"); -} -return f1(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-36gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-36gs.js deleted file mode 100644 index 71a7f9c2f..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-36gs.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-36gs -description: > - Strict - checking 'this' from a global scope (FunctionDeclaration - defined within a FunctionDeclaration with a strict directive - prologue) -flags: [onlyStrict] ----*/ - -function f1() { - "use strict"; - function f() { - return typeof this; - } - return (f()==="undefined") && ((typeof this)==="undefined"); -} -if (! f1()) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-37-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-37-s.js deleted file mode 100644 index 4330593ff..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-37-s.js +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-37-s -description: > - Strict Mode - checking 'this' (FunctionExpression defined within a - FunctionDeclaration with a strict directive prologue) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -function f1() { - "use strict"; - var f = function () { - return typeof this; - } - return (f()==="undefined") && ((typeof this)==="undefined"); -} -return f1(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-37gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-37gs.js deleted file mode 100644 index 4ce9b7cf7..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-37gs.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-37gs -description: > - Strict - checking 'this' from a global scope (FunctionExpression - defined within a FunctionDeclaration with a strict directive - prologue) -flags: [onlyStrict] ----*/ - -function f1() { - "use strict"; - var f = function () { - return typeof this; - } - return (f()==="undefined") && ((typeof this)==="undefined"); -} -if (! f1()) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-38-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-38-s.js deleted file mode 100644 index 773a07108..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-38-s.js +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-38-s -description: > - Strict Mode - checking 'this' (Anonymous FunctionExpression - defined within a FunctionDeclaration with a strict directive - prologue) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -function f1() { - "use strict"; - return ((function () { - return typeof this; - })()==="undefined") && ((typeof this)==="undefined"); -} -return f1(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-38gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-38gs.js deleted file mode 100644 index 34bd49321..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-38gs.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-38gs -description: > - Strict - checking 'this' from a global scope (Anonymous - FunctionExpression defined within a FunctionDeclaration with a - strict directive prologue) -flags: [onlyStrict] ----*/ - -function f1() { - "use strict"; - return ((function () { - return typeof this; - })()==="undefined") && ((typeof this)==="undefined"); -} -if (! f1()) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-39-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-39-s.js deleted file mode 100644 index 20ae974c7..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-39-s.js +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-39-s -description: > - Strict Mode - checking 'this' (FunctionDeclaration defined within - a FunctionExpression with a strict directive prologue) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -var f1 = function () { - "use strict"; - function f() { - return typeof this; - } - return (f()==="undefined") && ((typeof this)==="undefined"); -} -return f1(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-39gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-39gs.js deleted file mode 100644 index 6ffca5199..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-39gs.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-39gs -description: > - Strict - checking 'this' from a global scope (FunctionDeclaration - defined within a FunctionExpression with a strict directive - prologue) -flags: [onlyStrict] ----*/ - -var f1 = function () { - "use strict"; - function f() { - return typeof this; - } - return (f()==="undefined") && ((typeof this)==="undefined"); -} -if (! f1()) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-4-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-4-s.js deleted file mode 100644 index 292904c9f..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-4-s.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-4-s -description: this is not coerced to an object in strict mode (boolean) -flags: [noStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { - - function foo() - { - 'use strict'; - return typeof(this); - } - - function bar() - { - return typeof(this); - } - - - return foo.call(true) === 'boolean' && bar.call(true) === 'object'; - } -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-40-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-40-s.js deleted file mode 100644 index 3acd6ed16..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-40-s.js +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-40-s -description: > - Strict Mode - checking 'this' (FunctionExpression defined within a - FunctionExpression with a strict directive prologue) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -var f1 = function () { - "use strict"; - var f = function () { - return typeof this; - } - return (f()==="undefined") && ((typeof this)==="undefined"); -} -return f1(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-40gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-40gs.js deleted file mode 100644 index c0ad89dc7..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-40gs.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-40gs -description: > - Strict - checking 'this' from a global scope (FunctionExpression - defined within a FunctionExpression with a strict directive - prologue) -flags: [onlyStrict] ----*/ - -var f1 = function () { - "use strict"; - var f = function () { - return typeof this; - } - return (f()==="undefined") && ((typeof this)==="undefined"); -} -if (! f1()) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-41-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-41-s.js deleted file mode 100644 index 90acc8f61..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-41-s.js +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-41-s -description: > - Strict Mode - checking 'this' (Anonymous FunctionExpression - defined within a FunctionExpression with a strict directive - prologue) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -var f1 = function () { - "use strict"; - return ((function () { - return typeof this; - })()==="undefined") && ((typeof this)==="undefined"); -} -return f1(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-41gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-41gs.js deleted file mode 100644 index 64d3111cf..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-41gs.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-41gs -description: > - Strict - checking 'this' from a global scope (Anonymous - FunctionExpression defined within a FunctionExpression with a - strict directive prologue) -flags: [onlyStrict] ----*/ - -var f1 = function () { - "use strict"; - return ((function () { - return typeof this; - })()==="undefined") && ((typeof this)==="undefined"); -} -if (! f1()) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-42-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-42-s.js deleted file mode 100644 index 65bd712a0..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-42-s.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-42-s -description: > - Strict Mode - checking 'this' (FunctionDeclaration defined within - an Anonymous FunctionExpression with a strict directive prologue) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -return (function () { - "use strict"; - function f() { - return typeof this; - } - return (f()==="undefined") && ((typeof this)==="undefined"); -})(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-42gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-42gs.js deleted file mode 100644 index da586a8db..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-42gs.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-42gs -description: > - Strict - checking 'this' from a global scope (FunctionDeclaration - defined within an Anonymous FunctionExpression with a strict - directive prologue) -flags: [onlyStrict] ----*/ - -if (! ((function () { - "use strict"; - function f() { - return typeof this; - } - return (f()==="undefined") && ((typeof this)==="undefined"); -})())) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-43-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-43-s.js deleted file mode 100644 index 80481f7a7..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-43-s.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-43-s -description: > - Strict Mode - checking 'this' (FunctionExpression defined within - an Anonymous FunctionExpression with a strict directive prologue) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -return (function () { - "use strict"; - var f = function () { - return typeof this; - } - return (f()==="undefined") && ((typeof this)==="undefined"); -})(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-43gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-43gs.js deleted file mode 100644 index ca6df34cd..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-43gs.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-43gs -description: > - Strict - checking 'this' from a global scope (FunctionExpression - defined within an Anonymous FunctionExpression with a strict - directive prologue) -flags: [onlyStrict] ----*/ - -if (! ((function () { - "use strict"; - var f = function () { - return typeof this; - } - return (f()==="undefined") && ((typeof this)==="undefined"); -})())) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-44-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-44-s.js deleted file mode 100644 index 660e2bce1..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-44-s.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-44-s -description: > - Strict Mode - checking 'this' (Anonymous FunctionExpression - defined within an Anonymous FunctionExpression with a strict - directive prologue) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -return (function () { - "use strict"; - return ((function () { - return typeof this; - })()==="undefined") && ((typeof this)==="undefined"); -})(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-44gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-44gs.js deleted file mode 100644 index 0cea61d53..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-44gs.js +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-44gs -description: > - Strict - checking 'this' from a global scope (Anonymous - FunctionExpression defined within an Anonymous FunctionExpression - with a strict directive prologue) -flags: [onlyStrict] ----*/ - -if (! ((function () { - "use strict"; - return ((function () { - return typeof this; - })()==="undefined") && ((typeof this)==="undefined"); -})())) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-45-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-45-s.js deleted file mode 100644 index ce0c1c5b2..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-45-s.js +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-45-s -description: > - Strict Mode - checking 'this' (FunctionDeclaration with a strict - directive prologue defined within a FunctionDeclaration) -flags: [noStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -function f1() { - function f() { - "use strict"; - return typeof this; - } - return (f()==="undefined") && (this===fnGlobalObject()); -} -return f1(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-45gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-45gs.js deleted file mode 100644 index 09e1eda85..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-45gs.js +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-45gs -description: > - Strict - checking 'this' from a global scope (FunctionDeclaration - with a strict directive prologue defined within a - FunctionDeclaration) -flags: [noStrict] -includes: [fnGlobalObject.js] ----*/ - -function f1() { - function f() { - "use strict"; - return typeof this; - } - return (f()==="undefined") && (this===fnGlobalObject()); -} -if (! f1()) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-46-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-46-s.js deleted file mode 100644 index 11fb9fae8..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-46-s.js +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-46-s -description: > - Strict Mode - checking 'this' (FunctionExpression with a strict - directive prologue defined within a FunctionDeclaration) -flags: [noStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -function f1() { - var f = function () { - "use strict"; - return typeof this; - } - return (f()==="undefined") && (this===fnGlobalObject()); -} -return f1(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-46gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-46gs.js deleted file mode 100644 index 31e495ab2..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-46gs.js +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-46gs -description: > - Strict - checking 'this' from a global scope (FunctionExpression - with a strict directive prologue defined within a - FunctionDeclaration) -flags: [noStrict] -includes: [fnGlobalObject.js] ----*/ - -function f1() { - var f = function () { - "use strict"; - return typeof this; - } - return (f()==="undefined") && (this===fnGlobalObject()); -} -if (! f1()) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-47-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-47-s.js deleted file mode 100644 index 29fd5c2de..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-47-s.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-47-s -description: > - Strict Mode - checking 'this' (Anonymous FunctionExpression with a - strict directive prologue defined within a FunctionDeclaration) -flags: [noStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -function f1() { - return ((function () { - "use strict"; - return typeof this; - })()==="undefined") && (this===fnGlobalObject()); -} -return f1(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-47gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-47gs.js deleted file mode 100644 index 28dd22579..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-47gs.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-47gs -description: > - Strict - checking 'this' from a global scope (Anonymous - FunctionExpression with a strict directive prologue defined within - a FunctionDeclaration) -flags: [noStrict] -includes: [fnGlobalObject.js] ----*/ - -function f1() { - return ((function () { - "use strict"; - return typeof this; - })()==="undefined") && (this===fnGlobalObject()); -} -if (! f1()) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-48-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-48-s.js deleted file mode 100644 index 279209147..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-48-s.js +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-48-s -description: > - Strict Mode - checking 'this' (FunctionDeclaration with a strict - directive prologue defined within a FunctionExpression) -flags: [noStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -var f1 = function () { - function f() { - "use strict"; - return typeof this; - } - return (f()==="undefined") && (this===fnGlobalObject()); -} -return f1(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-48gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-48gs.js deleted file mode 100644 index c6b8efd59..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-48gs.js +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-48gs -description: > - Strict - checking 'this' from a global scope (FunctionDeclaration - with a strict directive prologue defined within a - FunctionExpression) -flags: [noStrict] -includes: [fnGlobalObject.js] ----*/ - -var f1 = function () { - function f() { - "use strict"; - return typeof this; - } - return (f()==="undefined") && (this===fnGlobalObject()); -} -if (! f1()) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-49-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-49-s.js deleted file mode 100644 index f8e9e3419..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-49-s.js +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-49-s -description: > - Strict Mode - checking 'this' (FunctionExpression with a strict - directive prologue defined within a FunctionExpression) -flags: [noStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -var f1 = function () { - var f = function () { - "use strict"; - return typeof this; - } - return (f()==="undefined") && (this===fnGlobalObject()); -} -return f1(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-49gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-49gs.js deleted file mode 100644 index e10adc97d..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-49gs.js +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-49gs -description: > - Strict - checking 'this' from a global scope (FunctionExpression - with a strict directive prologue defined within a - FunctionExpression) -flags: [noStrict] -includes: [fnGlobalObject.js] ----*/ - -var f1 = function () { - var f = function () { - "use strict"; - return typeof this; - } - return (f()==="undefined") && (this===fnGlobalObject()); -} -if (! f1()) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-5-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-5-s.js deleted file mode 100644 index d8daeb83d..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-5-s.js +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-5-s -description: this is not coerced to an object in strict mode (function) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { - - function foo() - { - 'use strict'; - return typeof(this); - } - - function bar() - { - return typeof(this); - } - - function foobar() - { - } - - return foo.call(foobar) === 'function' && bar.call(foobar) === 'function'; - } -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-50-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-50-s.js deleted file mode 100644 index 3f748296b..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-50-s.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-50-s -description: > - Strict Mode - checking 'this' (Anonymous FunctionExpression with a - strict directive prologue defined within a FunctionExpression) -flags: [noStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -var f1 = function () { - return ((function () { - "use strict"; - return typeof this; - })()==="undefined") && (this===fnGlobalObject()); -} -return f1(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-50gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-50gs.js deleted file mode 100644 index c189abc6b..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-50gs.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-50gs -description: > - Strict - checking 'this' from a global scope (Anonymous - FunctionExpression with a strict directive prologue defined within - a FunctionExpression) -flags: [noStrict] -includes: [fnGlobalObject.js] ----*/ - -var f1 = function () { - return ((function () { - "use strict"; - return typeof this; - })()==="undefined") && (this===fnGlobalObject()); -} -if (! f1()) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-51-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-51-s.js deleted file mode 100644 index 7a933541e..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-51-s.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-51-s -description: > - Strict Mode - checking 'this' (FunctionDeclaration with a strict - directive prologue defined within an Anonymous FunctionExpression) -flags: [noStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -return (function () { - function f() { - "use strict"; - return typeof this; - } - return (f()==="undefined") && (this===fnGlobalObject()); -})(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-51gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-51gs.js deleted file mode 100644 index ed0102580..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-51gs.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-51gs -description: > - Strict - checking 'this' from a global scope (FunctionDeclaration - with a strict directive prologue defined within an Anonymous - FunctionExpression) -flags: [noStrict] -includes: [fnGlobalObject.js] ----*/ - -if (! ((function () { - function f() { - "use strict"; - return typeof this; - } - return (f()==="undefined") && (this===fnGlobalObject()); -})())) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-52-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-52-s.js deleted file mode 100644 index 06fe64f31..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-52-s.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-52-s -description: > - Strict Mode - checking 'this' (FunctionExpression with a strict - directive prologue defined within an Anonymous FunctionExpression) -flags: [noStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -return (function () { - var f = function () { - "use strict"; - return typeof this; - } - return (f()==="undefined") && (this===fnGlobalObject()); -})(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-52gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-52gs.js deleted file mode 100644 index 3e6f626fa..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-52gs.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-52gs -description: > - Strict - checking 'this' from a global scope (FunctionExpression - with a strict directive prologue defined within an Anonymous - FunctionExpression) -flags: [noStrict] -includes: [fnGlobalObject.js] ----*/ - -if (! ((function () { - var f = function () { - "use strict"; - return typeof this; - } - return (f()==="undefined") && (this===fnGlobalObject()); -})())) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-53-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-53-s.js deleted file mode 100644 index 245b52da4..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-53-s.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-53-s -description: > - Strict Mode - checking 'this' (Anonymous FunctionExpression with a - strict directive prologue defined within an Anonymous - FunctionExpression) -flags: [noStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -return (function () { - return ((function () { - "use strict"; - return typeof this; - })()==="undefined") && (this===fnGlobalObject()); -})(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-53gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-53gs.js deleted file mode 100644 index 7e57820a7..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-53gs.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-53gs -description: > - Strict - checking 'this' from a global scope (Anonymous - FunctionExpression with a strict directive prologue defined within - an Anonymous FunctionExpression) -flags: [noStrict] -includes: [fnGlobalObject.js] ----*/ - -if (! ((function () { - return ((function () { - "use strict"; - return typeof this; - })()==="undefined") && (this===fnGlobalObject()); -})())) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-54-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-54-s.js deleted file mode 100644 index 9f8a6f216..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-54-s.js +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-54-s -description: > - Strict Mode - checking 'this' (Literal getter defined within - strict mode) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -"use strict"; -var o = { get foo() { return this; } } -return o.foo===o; -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-54gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-54gs.js deleted file mode 100644 index ee92de248..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-54gs.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-54gs -description: > - Strict - checking 'this' from a global scope (Literal getter - defined within strict mode) -flags: [onlyStrict] ----*/ - -"use strict"; -var o = { get foo() { return this; } } -if (o.foo!==o) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-55-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-55-s.js deleted file mode 100644 index 222e89cc1..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-55-s.js +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-55-s -description: > - Strict Mode - checking 'this' (Literal getter includes strict - directive prologue) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -var o = { get foo() { "use strict"; return this; } } -return o.foo===o; -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-55gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-55gs.js deleted file mode 100644 index 5b3e03cdf..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-55gs.js +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-55gs -description: > - Strict - checking 'this' from a global scope (Literal getter - includes strict directive prologue) -flags: [onlyStrict] ----*/ - -var o = { get foo() { "use strict"; return this; } } -if (o.foo!==o) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-56-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-56-s.js deleted file mode 100644 index 700670aad..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-56-s.js +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-56-s -description: > - Strict Mode - checking 'this' (Literal setter defined within - strict mode) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -"use strict"; -var x = 2; -var o = { set foo(stuff) { x=this; } } -o.foo = 3; -return x===o; -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-56gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-56gs.js deleted file mode 100644 index 421c0960f..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-56gs.js +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-56gs -description: > - Strict - checking 'this' from a global scope (Literal setter - defined within strict mode) -flags: [onlyStrict] ----*/ - -"use strict"; -var x = 2; -var o = { set foo(stuff) { x=this; } } -o.foo = 3; -if (x!==o) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-57-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-57-s.js deleted file mode 100644 index ef95dc963..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-57-s.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-57-s -description: > - Strict Mode - checking 'this' (Literal setter includes strict - directive prologue) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -var x = 2; -var o = { set foo(stuff) { "use strict"; x=this; } } -o.foo = 3; -return x===o; -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-57gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-57gs.js deleted file mode 100644 index abffec5fc..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-57gs.js +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-57gs -description: > - Strict - checking 'this' from a global scope (Literal setter - includes strict directive prologue) -flags: [onlyStrict] ----*/ - -var x = 2; -var o = { set foo(stuff) { "use strict"; x=this; } } -o.foo = 3; -if (x!==o) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-58-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-58-s.js deleted file mode 100644 index e442dc2cc..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-58-s.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-58-s -description: > - Strict Mode - checking 'this' (Injected getter defined within - strict mode) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -"use strict"; -var o = {}; -Object.defineProperty(o, "foo", { get: function() { return this; } }); -return o.foo===o; -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-58gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-58gs.js deleted file mode 100644 index 5288ad37b..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-58gs.js +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-58gs -description: > - Strict - checking 'this' from a global scope (Injected getter - defined within strict mode) -flags: [onlyStrict] ----*/ - -"use strict"; -var o = {}; -Object.defineProperty(o, "foo", { get : function() { return this; } }); -if (o.foo!==o) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-59-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-59-s.js deleted file mode 100644 index 1e3aa9e36..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-59-s.js +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-59-s -description: > - Strict Mode - checking 'this' (Injected getter includes strict - directive prologue) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -var o = {}; -Object.defineProperty(o, "foo", { get: function() { "use strict"; return this; } }); -return o.foo===o; -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-59gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-59gs.js deleted file mode 100644 index e1b367a78..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-59gs.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-59gs -description: > - Strict - checking 'this' from a global scope (Injected getter - includes strict directive prologue) -flags: [onlyStrict] ----*/ - -var o = {}; -Object.defineProperty(o, "foo", { get: function() { "use strict"; return this; } }); -if (o.foo!==o) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-60-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-60-s.js deleted file mode 100644 index 9f7ef7bc9..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-60-s.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-60-s -description: > - Strict Mode - checking 'this' (Injected setter defined within - strict mode) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -"use strict"; -var o = {}; -var x = 2; -Object.defineProperty(o, "foo", { set: function(stuff) { x=this; } }); -o.foo = 3; -return x===o; -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-60gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-60gs.js deleted file mode 100644 index da480d381..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-60gs.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-60gs -description: > - Strict - checking 'this' from a global scope (Injected setter - defined within strict mode) -flags: [onlyStrict] ----*/ - -"use strict"; -var o = {}; -var x = 2; -Object.defineProperty(o, "foo", { set: function(stuff) { x=this; } }); -o.foo = 3; -if (x!==o) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-61-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-61-s.js deleted file mode 100644 index cdeed9600..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-61-s.js +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-61-s -description: > - Strict Mode - checking 'this' (Injected setter includes strict - directive prologue) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -var o = {}; -var x = 2; -Object.defineProperty(o, "foo", { set: function(stuff) { "use strict"; x=this; } }); -o.foo = 3; -return x===o; -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-61gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-61gs.js deleted file mode 100644 index ee4b3641c..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-61gs.js +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-61gs -description: > - Strict - checking 'this' from a global scope (Injected setter - includes strict directive prologue) -flags: [onlyStrict] ----*/ - -var o = {}; -var x = 2; -Object.defineProperty(o, "foo", { set: function(stuff) { "use strict"; x=this; } }); -o.foo = 3; -if (x!==o) { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-62-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-62-s.js deleted file mode 100644 index c8c42d2b9..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-62-s.js +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-62-s -description: > - Strict Mode - checking 'this' (strict function declaration called - by non-strict function declaration) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -function f() { "use strict"; return this;}; -function foo() { return f();} -return foo()===undefined; -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-62gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-62gs.js deleted file mode 100644 index 4e859faee..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-62gs.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-62gs -description: > - Strict - checking 'this' from a global scope (strict function - declaration called by non-strict function declaration) -flags: [onlyStrict] ----*/ - -function f() { "use strict"; return this;}; -function foo() { return f();} -if (foo()!==undefined){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-63-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-63-s.js deleted file mode 100644 index 69de47905..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-63-s.js +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-63-s -description: > - Strict Mode - checking 'this' (strict function declaration called - by non-strict eval) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -function f() { "use strict"; return this===undefined;}; -return eval("f();"); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-63gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-63gs.js deleted file mode 100644 index 5e6bb27f2..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-63gs.js +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-63gs -description: > - Strict - checking 'this' from a global scope (strict function - declaration called by non-strict eval) -flags: [onlyStrict] ----*/ - -function f() { "use strict"; return this===undefined;}; -if (! eval("f();")){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-64-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-64-s.js deleted file mode 100644 index d37732fcc..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-64-s.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-64-s -description: > - Strict Mode - checking 'this' (strict function declaration called - by non-strict Function constructor) -flags: [onlyStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -fnGlobalObject().f = function() { "use strict"; return this===undefined;}; -return Function("return f();")(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-64gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-64gs.js deleted file mode 100644 index e2e5f1c45..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-64gs.js +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-64gs -description: > - Strict - checking 'this' from a global scope (strict function - declaration called by non-strict Function constructor) -flags: [onlyStrict] ----*/ - -function f() { "use strict"; return this===undefined;}; -if (! (Function("return f();")())){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-65-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-65-s.js deleted file mode 100644 index 97eeb9d86..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-65-s.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-65-s -description: > - Strict Mode - checking 'this' (strict function declaration called - by non-strict new'ed Function constructor) -flags: [onlyStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -fnGlobalObject().f = function() { "use strict"; return this===undefined;}; -return (new Function("return f();"))(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-65gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-65gs.js deleted file mode 100644 index c3ee2c53c..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-65gs.js +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-65gs -description: > - Strict - checking 'this' from a global scope (strict function - declaration called by non-strict new'ed Function constructor) -flags: [onlyStrict] ----*/ - -function f() { "use strict"; return this===undefined;}; -if (! ( (new Function("return f();")) () )){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-66-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-66-s.js deleted file mode 100644 index 7296d2e0f..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-66-s.js +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-66-s -description: > - Strict Mode - checking 'this' (strict function declaration called - by Function.prototype.apply()) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -function f() { "use strict"; return this===undefined;}; -return f.apply(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-66gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-66gs.js deleted file mode 100644 index 3509879da..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-66gs.js +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-66gs -description: > - Strict - checking 'this' from a global scope (strict function - declaration called by Function.prototype.apply()) -flags: [onlyStrict] ----*/ - -function f() { "use strict"; return this===undefined;}; -if (! f.apply()){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-67-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-67-s.js deleted file mode 100644 index 62e0ca57c..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-67-s.js +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-67-s -description: > - Strict Mode - checking 'this' (strict function declaration called - by Function.prototype.apply(null)) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -function f() { "use strict"; return this===null;}; -return f.apply(null); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-67gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-67gs.js deleted file mode 100644 index 01ca6dcc0..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-67gs.js +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-67gs -description: > - Strict - checking 'this' from a global scope (strict function - declaration called by Function.prototype.apply(null)) -flags: [onlyStrict] ----*/ - -function f() { "use strict"; return this===null;}; -if (! f.apply(null)){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-68-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-68-s.js deleted file mode 100644 index 8ca7afcd8..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-68-s.js +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-68-s -description: > - Strict Mode - checking 'this' (strict function declaration called - by Function.prototype.apply(undefined)) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -function f() { "use strict"; return this===undefined;}; -return f.apply(undefined); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-68gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-68gs.js deleted file mode 100644 index cf4b35f66..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-68gs.js +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-68gs -description: > - Strict - checking 'this' from a global scope (strict function - declaration called by Function.prototype.apply(undefined)) -flags: [onlyStrict] ----*/ - -function f() { "use strict"; return this===undefined;}; -if (! f.apply(undefined)){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-69-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-69-s.js deleted file mode 100644 index abeab46c1..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-69-s.js +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-69-s -description: > - Strict Mode - checking 'this' (strict function declaration called - by Function.prototype.apply(someObject)) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -var o = {}; -function f() { "use strict"; return this===o;}; -return f.apply(o); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-69gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-69gs.js deleted file mode 100644 index a16e0ba4a..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-69gs.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-69gs -description: > - Strict - checking 'this' from a global scope (strict function - declaration called by Function.prototype.apply(someObject)) -flags: [onlyStrict] ----*/ - -var o = {}; -function f() { "use strict"; return this===o;}; -if (! f.apply(o)){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-7-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-7-s.js deleted file mode 100644 index 7570eaacf..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-7-s.js +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-7-s -description: > - Strict Mode - checking 'this' (FunctionDeclaration defined within - strict mode) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -"use strict"; -function f() { - return typeof this; -} -return f() === "undefined"; -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-70-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-70-s.js deleted file mode 100644 index 717e2d484..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-70-s.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-70-s -description: > - Strict Mode - checking 'this' (strict function declaration called - by Function.prototype.apply(globalObject)) -flags: [onlyStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -function f() { "use strict"; return this;}; -return f.apply(fnGlobalObject()) === fnGlobalObject(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-70gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-70gs.js deleted file mode 100644 index c72d8146a..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-70gs.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-70gs -description: > - Strict - checking 'this' from a global scope (strict function - declaration called by Function.prototype.apply(globalObject)) -flags: [onlyStrict] -includes: [fnGlobalObject.js] ----*/ - -function f() { "use strict"; return this;}; -if (f.apply(fnGlobalObject()) !== fnGlobalObject()){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-71-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-71-s.js deleted file mode 100644 index 2bc18a157..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-71-s.js +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-71-s -description: > - Strict Mode - checking 'this' (strict function declaration called - by Function.prototype.call()) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -function f() { "use strict"; return this===undefined;}; -return f.call(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-71gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-71gs.js deleted file mode 100644 index 0e9f4e323..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-71gs.js +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-71gs -description: > - Strict - checking 'this' from a global scope (strict function - declaration called by Function.prototype.call()) -flags: [onlyStrict] ----*/ - -function f() { "use strict"; return this===undefined;}; -if (! f.call()){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-72-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-72-s.js deleted file mode 100644 index 18d97c980..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-72-s.js +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-72-s -description: > - Strict Mode - checking 'this' (strict function declaration called - by Function.prototype.call(null)) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -function f() { "use strict"; return this===null;}; -return f.call(null); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-72gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-72gs.js deleted file mode 100644 index 02970c77a..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-72gs.js +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-72gs -description: > - Strict - checking 'this' from a global scope (strict function - declaration called by Function.prototype.call(null)) -flags: [onlyStrict] ----*/ - -function f() { "use strict"; return this===null;}; -if (! f.call(null)){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-73-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-73-s.js deleted file mode 100644 index 79e1842cf..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-73-s.js +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-73-s -description: > - Strict Mode - checking 'this' (strict function declaration called - by Function.prototype.call(undefined)) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -function f() { "use strict"; return this===undefined;}; -return f.call(undefined); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-73gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-73gs.js deleted file mode 100644 index 57470bf82..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-73gs.js +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-73gs -description: > - Strict - checking 'this' from a global scope (strict function - declaration called by Function.prototype.call(undefined)) -flags: [onlyStrict] ----*/ - -function f() { "use strict"; return this===undefined;}; -if (! f.call(undefined)){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-74-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-74-s.js deleted file mode 100644 index 5dafb56c3..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-74-s.js +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-74-s -description: > - Strict Mode - checking 'this' (strict function declaration called - by Function.prototype.call(someObject)) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -var o = {}; -function f() { "use strict"; return this===o;}; -return f.call(o); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-74gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-74gs.js deleted file mode 100644 index 74fa57089..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-74gs.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-74gs -description: > - Strict - checking 'this' from a global scope (strict function - declaration called by Function.prototype.call(someObject)) -flags: [onlyStrict] ----*/ - -var o = {}; -function f() { "use strict"; return this===o;}; -if (! f.call(o)){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-75-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-75-s.js deleted file mode 100644 index f86c4860f..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-75-s.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-75-s -description: > - Strict Mode - checking 'this' (strict function declaration called - by Function.prototype.call(globalObject)) -flags: [onlyStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -function f() { "use strict"; return this;}; -return f.call(fnGlobalObject()) === fnGlobalObject(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-75gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-75gs.js deleted file mode 100644 index a5b7b3b5d..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-75gs.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-75gs -description: > - Strict - checking 'this' from a global scope (strict function - declaration called by Function.prototype.call(globalObject)) -flags: [onlyStrict] -includes: [fnGlobalObject.js] ----*/ - -function f() { "use strict"; return this;}; -if (f.call(fnGlobalObject()) !== fnGlobalObject()){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-76-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-76-s.js deleted file mode 100644 index b2232543c..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-76-s.js +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-76-s -description: > - Strict Mode - checking 'this' (strict function declaration called - by Function.prototype.bind()()) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -function f() { "use strict"; return this===undefined;}; -return f.bind()(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-76gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-76gs.js deleted file mode 100644 index 8473b15a7..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-76gs.js +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-76gs -description: > - Strict - checking 'this' from a global scope (strict function - declaration called by Function.prototype.bind()()) -flags: [onlyStrict] ----*/ - -function f() { "use strict"; return this===undefined;}; -if (! (f.bind()())){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-77-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-77-s.js deleted file mode 100644 index d9ee6394c..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-77-s.js +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-77-s -description: > - Strict Mode - checking 'this' (strict function declaration called - by Function.prototype.bind(null)()) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -function f() { "use strict"; return this===null;}; -return f.bind(null)(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-77gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-77gs.js deleted file mode 100644 index 5cce027e0..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-77gs.js +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-77gs -description: > - Strict - checking 'this' from a global scope (strict function - declaration called by Function.prototype.bind(null)()) -flags: [onlyStrict] ----*/ - -function f() { "use strict"; return this===null;}; -if (! (f.bind(null)())){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-78-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-78-s.js deleted file mode 100644 index 1f5fe727b..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-78-s.js +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-78-s -description: > - Strict Mode - checking 'this' (strict function declaration called - by Function.prototype.bind(undefined)()) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -function f() { "use strict"; return this===undefined;}; -return f.bind(undefined)(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-78gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-78gs.js deleted file mode 100644 index c2e54acbc..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-78gs.js +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-78gs -description: > - Strict - checking 'this' from a global scope (strict function - declaration called by Function.prototype.bind(undefined)()) -flags: [onlyStrict] ----*/ - -function f() { "use strict"; return this===undefined;}; -if (! (f.bind(undefined)())){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-79-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-79-s.js deleted file mode 100644 index 520db0f9a..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-79-s.js +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-79-s -description: > - Strict Mode - checking 'this' (strict function declaration called - by Function.prototype.bind(someObject)()) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -var o = {}; -function f() { "use strict"; return this===o;}; -return f.bind(o)(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-79gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-79gs.js deleted file mode 100644 index 0a5c6c0b8..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-79gs.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-79gs -description: > - Strict - checking 'this' from a global scope (strict function - declaration called by Function.prototype.bind(someObject)()) -flags: [onlyStrict] ----*/ - -var o = {}; -function f() { "use strict"; return this===o;}; -if (! (f.bind(o)())){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-7gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-7gs.js deleted file mode 100644 index 40707ae2b..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-7gs.js +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-7gs -description: > - Strict - checking 'this' from a global scope (FunctionDeclaration - defined within strict mode) -flags: [onlyStrict] ----*/ - -"use strict"; -function f() { - return typeof this; -} -if (f() !== "undefined") { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-8-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-8-s.js deleted file mode 100644 index 5734cbb02..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-8-s.js +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-8-s -description: > - Strict Mode - checking 'this' (FunctionDeclaration includes strict - directive prologue) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -function f() { - "use strict"; - return typeof this; -} -return f() === "undefined"; -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-80-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-80-s.js deleted file mode 100644 index 81587d586..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-80-s.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-80-s -description: > - Strict Mode - checking 'this' (strict function declaration called - by Function.prototype.bind(globalObject)()) -flags: [onlyStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -function f() { "use strict"; return this;}; -return f.bind(fnGlobalObject())() === fnGlobalObject(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-80gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-80gs.js deleted file mode 100644 index 6e98c030d..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-80gs.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-80gs -description: > - Strict - checking 'this' from a global scope (strict function - declaration called by Function.prototype.bind(globalObject)()) -flags: [onlyStrict] -includes: [fnGlobalObject.js] ----*/ - -function f() { "use strict"; return this;}; -if (f.bind(fnGlobalObject())() !== fnGlobalObject()){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-81-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-81-s.js deleted file mode 100644 index 21b7f8ee9..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-81-s.js +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-81-s -description: > - Strict Mode - checking 'this' (non-strict function declaration - called by strict function declaration) -flags: [noStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -function f() { return this!==undefined;}; -function foo() { "use strict"; return f();} -return foo(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-81gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-81gs.js deleted file mode 100644 index 097a8ad3c..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-81gs.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-81gs -description: > - Strict - checking 'this' from a global scope (non-strict function - declaration called by strict function declaration) -flags: [noStrict] ----*/ - -function f() { return this!==undefined;}; -function foo() { "use strict"; return f();} -if (! foo()){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-82-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-82-s.js deleted file mode 100644 index a46160d3a..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-82-s.js +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-82-s -description: > - Strict Mode - checking 'this' (non-strict function declaration - called by strict eval) -flags: [noStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -function f() { return this!==undefined;}; -return (function () {"use strict"; return eval("f();");})(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-82gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-82gs.js deleted file mode 100644 index 64069cfd9..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-82gs.js +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-82gs -description: > - Strict - checking 'this' from a global scope (non-strict function - declaration called by strict eval) -flags: [noStrict] ----*/ - -function f() { return this!==undefined;}; -if (! ((function () {"use strict"; return eval("f();");})()) ){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-83-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-83-s.js deleted file mode 100644 index e5c69968d..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-83-s.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-83-s -description: > - Strict Mode - checking 'this' (non-strict function declaration - called by strict Function constructor) -flags: [noStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -fnGlobalObject().f = function() {return this!==undefined;}; -return (function () {return Function("\"use strict\";return f();")();})(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-83gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-83gs.js deleted file mode 100644 index ea0b70b2d..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-83gs.js +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-83gs -description: > - Strict - checking 'this' from a global scope (non-strict function - declaration called by strict Function constructor) -flags: [noStrict] ----*/ - -function f() {return this!==undefined;}; -if (! ((function () {return Function("\"use strict\";return f();")();})()) ){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-84-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-84-s.js deleted file mode 100644 index e583539ae..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-84-s.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-84-s -description: > - Strict Mode - checking 'this' (non-strict function declaration - called by strict new'ed Function constructor) -flags: [noStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -fnGlobalObject().f = function() { return this!==undefined;}; -return (function () {return new Function("\"use strict\";return f();")();})(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-84gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-84gs.js deleted file mode 100644 index afad19098..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-84gs.js +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-84gs -description: > - Strict - checking 'this' from a global scope (non-strict function - declaration called by strict new'ed Function constructor) -flags: [noStrict] ----*/ - -function f() { return this!==undefined;}; -if (! ((function () {return new Function("\"use strict\";return f();")();})()) ){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-85-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-85-s.js deleted file mode 100644 index 134e4c730..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-85-s.js +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-85-s -description: > - Strict Mode - checking 'this' (non-strict function declaration - called by strict Function.prototype.apply()) -flags: [noStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -function f() { return this!==undefined;}; -return (function () {"use strict"; return f.apply();})(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-85gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-85gs.js deleted file mode 100644 index 7d75208fe..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-85gs.js +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-85gs -description: > - Strict - checking 'this' from a global scope (non-strict function - declaration called by strict Function.prototype.apply()) -flags: [noStrict] ----*/ - -function f() { return this!==undefined;}; -if (! ((function () {"use strict"; return f.apply();})())){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-86-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-86-s.js deleted file mode 100644 index 594c02efa..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-86-s.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-86-s -description: > - Strict Mode - checking 'this' (non-strict function declaration - called by strict Function.prototype.apply(null)) -flags: [noStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -function f() { return this===fnGlobalObject();}; -return (function () {"use strict"; return f.apply(null);})(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-86gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-86gs.js deleted file mode 100644 index 92ee3eee6..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-86gs.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-86gs -description: > - Strict - checking 'this' from a global scope (non-strict function - declaration called by strict Function.prototype.apply(null)) -flags: [noStrict] -includes: [fnGlobalObject.js] ----*/ - -function f() { return this===fnGlobalObject();}; -if (! ((function () {"use strict"; return f.apply(null);})())){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-87-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-87-s.js deleted file mode 100644 index ee70fd319..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-87-s.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-87-s -description: > - Strict Mode - checking 'this' (non-strict function declaration - called by strict Function.prototype.apply(undefined)) -flags: [noStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -function f() { return this===fnGlobalObject()}; -return (function () {"use strict"; return f.apply(undefined);})(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-87gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-87gs.js deleted file mode 100644 index 925c1c8d2..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-87gs.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-87gs -description: > - Strict - checking 'this' from a global scope (non-strict function - declaration called by strict Function.prototype.apply(undefined)) -flags: [noStrict] -includes: [fnGlobalObject.js] ----*/ - -function f() { return this===fnGlobalObject();}; -if (! ((function () {"use strict"; return f.apply(undefined);})())){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-88-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-88-s.js deleted file mode 100644 index b8a408f5b..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-88-s.js +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-88-s -description: > - Strict Mode - checking 'this' (non-strict function declaration - called by strict Function.prototype.apply(someObject)) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -var o = {}; -function f() { return this===o;}; -return (function () {"use strict"; return f.apply(o);})(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-88gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-88gs.js deleted file mode 100644 index b2f0c6278..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-88gs.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-88gs -description: > - Strict - checking 'this' from a global scope (non-strict function - declaration called by strict Function.prototype.apply(someObject)) -flags: [onlyStrict] ----*/ - -var o = {}; -function f() { return this===o;}; -if (! ((function () {"use strict"; return f.apply(o);})())){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-89-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-89-s.js deleted file mode 100644 index 8bf1f4e94..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-89-s.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-89-s -description: > - Strict Mode - checking 'this' (non-strict function declaration - called by strict Function.prototype.apply(globalObject)) -flags: [onlyStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -function f() { return this;}; -return (function () {"use strict"; return f.apply(fnGlobalObject()); })() === fnGlobalObject(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-89gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-89gs.js deleted file mode 100644 index 0169f6b15..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-89gs.js +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-89gs -description: > - Strict - checking 'this' from a global scope (non-strict function - declaration called by strict - Function.prototype.apply(globalObject)) -flags: [onlyStrict] -includes: [fnGlobalObject.js] ----*/ - -function f() { return this;}; -if ((function () {"use strict"; return f.apply(fnGlobalObject());})() !== fnGlobalObject()){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-8gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-8gs.js deleted file mode 100644 index aa1c85297..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-8gs.js +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-8gs -description: > - Strict - checking 'this' from a global scope (FunctionDeclaration - includes strict directive prologue) -flags: [onlyStrict] ----*/ - -function f() { - "use strict"; - return typeof this; -} -if (f() !== "undefined") { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-9-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-9-s.js deleted file mode 100644 index 9a27cdfdf..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-9-s.js +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-9-s -description: > - Strict Mode - checking 'this' (FunctionExpression defined within - strict mode) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -"use strict"; -var f = function () { - return typeof this; -} -return f() === "undefined"; -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-90-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-90-s.js deleted file mode 100644 index 6a4c20c69..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-90-s.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-90-s -description: > - Strict Mode - checking 'this' (non-strict function declaration - called by strict Function.prototype.call()) -flags: [noStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -function f() { return this===fnGlobalObject();}; -return (function () {"use strict"; return f.call(); })(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-90gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-90gs.js deleted file mode 100644 index 18ec5b7ca..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-90gs.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-90gs -description: > - Strict - checking 'this' from a global scope (non-strict function - declaration called by strict Function.prototype.call()) -flags: [noStrict] -includes: [fnGlobalObject.js] ----*/ - -function f() { return this===fnGlobalObject();}; -if (! ((function () {"use strict"; return f.call();})())){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-91-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-91-s.js deleted file mode 100644 index 4979b4df1..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-91-s.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-91-s -description: > - Strict Mode - checking 'this' (non-strict function declaration - called by strict Function.prototype.call(null)) -flags: [noStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -function f() { return this===fnGlobalObject();}; -return (function () {"use strict"; return f.call(null); })(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-91gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-91gs.js deleted file mode 100644 index ec3cac5bd..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-91gs.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-91gs -description: > - Strict - checking 'this' from a global scope (non-strict function - declaration called by strict Function.prototype.call(null)) -flags: [noStrict] -includes: [fnGlobalObject.js] ----*/ - -function f() { return this===fnGlobalObject();}; -if (! ((function () {"use strict"; return f.call(null); })())){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-92-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-92-s.js deleted file mode 100644 index b06a2691d..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-92-s.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-92-s -description: > - Strict Mode - checking 'this' (non-strict function declaration - called by strict Function.prototype.call(undefined)) -flags: [noStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -function f() { return this===fnGlobalObject();}; -return (function () {"use strict"; return f.call(undefined);})(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-92gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-92gs.js deleted file mode 100644 index 1344bb81c..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-92gs.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-92gs -description: > - Strict - checking 'this' from a global scope (non-strict function - declaration called by strict Function.prototype.call(undefined)) -flags: [noStrict] -includes: [fnGlobalObject.js] ----*/ - -function f() { return this===fnGlobalObject();}; -if (! ((function () {"use strict"; return f.call(undefined);})())){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-93-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-93-s.js deleted file mode 100644 index 840a130ad..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-93-s.js +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-93-s -description: > - Strict Mode - checking 'this' (non-strict function declaration - called by strict Function.prototype.call(someObject)) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -var o = {}; -function f() { return this===o;}; -return (function () {"use strict"; return f.call(o); })(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-93gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-93gs.js deleted file mode 100644 index 0342a02fb..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-93gs.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-93gs -description: > - Strict - checking 'this' from a global scope (non-strict function - declaration called by strict Function.prototype.call(someObject)) -flags: [onlyStrict] ----*/ - -var o = {}; -function f() { return this===o;}; -if (! ((function () {"use strict"; return f.call(o); })())){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-94-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-94-s.js deleted file mode 100644 index 840230372..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-94-s.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-94-s -description: > - Strict Mode - checking 'this' (non-strict function declaration - called by strict Function.prototype.call(globalObject)) -flags: [onlyStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -function f() { return this===fnGlobalObject();}; -return (function () {"use strict"; return f.call(fnGlobalObject());})(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-94gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-94gs.js deleted file mode 100644 index bfa23d577..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-94gs.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-94gs -description: > - Strict - checking 'this' from a global scope (non-strict function - declaration called by strict Function.prototype.call(globalObject)) -flags: [onlyStrict] -includes: [fnGlobalObject.js] ----*/ - -function f() { return this===fnGlobalObject();}; -if (! ((function () {"use strict"; return f.call(fnGlobalObject());})())){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-95-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-95-s.js deleted file mode 100644 index d4f2fe252..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-95-s.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-95-s -description: > - Strict Mode - checking 'this' (non-strict function declaration - called by strict Function.prototype.bind()()) -flags: [noStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -function f() { return this===fnGlobalObject();}; -return (function () {"use strict"; return f.bind()(); })(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-95gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-95gs.js deleted file mode 100644 index c427a3cb9..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-95gs.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-95gs -description: > - Strict - checking 'this' from a global scope (non-strict function - declaration called by strict Function.prototype.bind()()) -flags: [noStrict] -includes: [fnGlobalObject.js] ----*/ - -function f() { return this===fnGlobalObject();}; -if (! ((function () {"use strict"; return f.bind()(); })())){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-96-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-96-s.js deleted file mode 100644 index e319495bf..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-96-s.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-96-s -description: > - Strict Mode - checking 'this' (non-strict function declaration - called by strict Function.prototype.bind(null)()) -flags: [noStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -function f() { return this===fnGlobalObject();}; -return (function () {"use strict"; return f.bind(null)(); })(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-96gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-96gs.js deleted file mode 100644 index 16d81f317..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-96gs.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-96gs -description: > - Strict - checking 'this' from a global scope (non-strict function - declaration called by strict Function.prototype.bind(null)()) -flags: [noStrict] -includes: [fnGlobalObject.js] ----*/ - -function f() { return this===fnGlobalObject();}; -if (! ((function () {"use strict"; return f.bind(null)(); })())){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-97-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-97-s.js deleted file mode 100644 index 3159e5057..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-97-s.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-97-s -description: > - Strict Mode - checking 'this' (non-strict function declaration - called by strict Function.prototype.bind(undefined)()) -flags: [noStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -function f() { return this===fnGlobalObject();}; -return (function () {"use strict"; return f.bind(undefined)();})(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-97gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-97gs.js deleted file mode 100644 index 72f600a65..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-97gs.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-97gs -description: > - Strict - checking 'this' from a global scope (non-strict function - declaration called by strict Function.prototype.bind(undefined)()) -flags: [noStrict] -includes: [fnGlobalObject.js] ----*/ - -function f() { return this===fnGlobalObject();}; -if (! ((function () {"use strict"; return f.bind(undefined)(); })())){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-98-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-98-s.js deleted file mode 100644 index d7338692b..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-98-s.js +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-98-s -description: > - Strict Mode - checking 'this' (non-strict function declaration - called by strict Function.prototype.bind(someObject)()) -flags: [onlyStrict] -includes: [runTestCase.js] ----*/ - -function testcase() { -var o = {}; -function f() { return this===o;}; -return (function () {"use strict"; return f.bind(o)();})(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-98gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-98gs.js deleted file mode 100644 index fe85d5002..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-98gs.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-98gs -description: > - Strict - checking 'this' from a global scope (non-strict function - declaration called by strict Function.prototype.bind(someObject)()) -flags: [onlyStrict] ----*/ - -var o = {}; -function f() { return this===o;}; -if (! ((function () {"use strict"; return f.bind(o)();})())){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-99-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-99-s.js deleted file mode 100644 index 5381391a5..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-99-s.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-99-s -description: > - Strict Mode - checking 'this' (non-strict function declaration - called by strict Function.prototype.bind(globalObject)()) -flags: [onlyStrict] -includes: - - runTestCase.js - - fnGlobalObject.js ----*/ - -function testcase() { -function f() { return this===fnGlobalObject();}; -return (function () {"use strict"; return f.bind(fnGlobalObject())();})(); -} -runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-99gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-99gs.js deleted file mode 100644 index 20e1d7c45..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-99gs.js +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-99gs -description: > - Strict - checking 'this' from a global scope (non-strict function - declaration called by strict - Function.prototype.bind(globalObject)()) -flags: [onlyStrict] -includes: [fnGlobalObject.js] ----*/ - -function f() { return this===fnGlobalObject();}; -if (! ((function () {"use strict"; return f.bind(fnGlobalObject())();})())){ - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-9gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-9gs.js deleted file mode 100644 index d701b00c1..000000000 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-9gs.js +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// Ecma International makes this code available under the terms and conditions set -// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -// "Use Terms"). Any redistribution of this code must retain the above -// copyright and this notice and otherwise comply with the Use Terms. - -/*--- -es5id: 10.4.3-1-9gs -description: > - Strict - checking 'this' from a global scope (FunctionExpression - defined within strict mode) -flags: [onlyStrict] ----*/ - -"use strict"; -var f = function () { - return typeof this; -} -if (f() !== "undefined") { - throw "'this' had incorrect value!"; -} diff --git a/test/suite/ch10/10.4/10.4.3/S10.4.3_A1.js b/test/suite/ch10/10.4/10.4.3/S10.4.3_A1.js deleted file mode 100644 index 447ab46d5..000000000 --- a/test/suite/ch10/10.4/10.4.3/S10.4.3_A1.js +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright 2011 Google, Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 10.4.3_A1 -description: > - When calling a strict anonymous function as a function, "this" - should be bound to undefined. -flags: [onlyStrict] ----*/ - -"use strict"; -var that = (function() { return this; })(); -if (that !== undefined) { - $ERROR('#1: "this" leaked as: ' + that); -} diff --git a/test/suite/ch10/10.4/S10.4A1.1_T2.js b/test/suite/ch10/10.4/S10.4A1.1_T2.js deleted file mode 100644 index 21060a8f1..000000000 --- a/test/suite/ch10/10.4/S10.4A1.1_T2.js +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: Every function call enters a new execution context -es5id: 10.4A1.1_T2 -description: Recursive function call ----*/ - -var y; - -function f(a){ - var x; - - if (a === 1) - return x; - else { - if(x === undefined) { - x = 0; - } else { - x = 1; - } - return f(1); - } -} - -y = f(0); - -if(!(y === undefined)){ - $ERROR("#1: Recursive function calls shares execution context"); -} diff --git a/test/suite/ch10/10.4/S10.4_A1.1_T1.js b/test/suite/ch10/10.4/S10.4_A1.1_T1.js deleted file mode 100644 index d44b753e3..000000000 --- a/test/suite/ch10/10.4/S10.4_A1.1_T1.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: Every function call enters a new execution context -es5id: 10.4_A1.1_T1 -description: Sequence of function calls ----*/ - -var y; - -function f(){ - var x; - - if(x === undefined) { - x = 0; - } else { - x = 1; - } - - return x; -} - -y = f(); -y = f(); - -if(!(y === 0)){ - $ERROR("#1: Sequenced function calls shares execution context"); -} |