diff --git a/test/language/eval-code/S10.4.2_A1.1_T1.js b/test/language/eval-code/S10.4.2_A1.1_T1.js deleted file mode 100644 index aefa1d3234..0000000000 --- a/test/language/eval-code/S10.4.2_A1.1_T1.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_T1 -description: eval within global execution context -flags: [noStrict] ----*/ - -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/language/eval-code/S10.4.2_A1.1_T10.js b/test/language/eval-code/S10.4.2_A1.1_T10.js deleted file mode 100644 index 38ac16ebef..0000000000 --- a/test/language/eval-code/S10.4.2_A1.1_T10.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_T10 -description: eval within global execution context -flags: [noStrict] ----*/ - -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/language/eval-code/S10.4.2_A1.1_T11.js b/test/language/eval-code/S10.4.2_A1.1_T11.js deleted file mode 100644 index b0e4a48a63..0000000000 --- a/test/language/eval-code/S10.4.2_A1.1_T11.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: > - 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 -flags: [noStrict] ----*/ - -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/language/eval-code/S10.4.2_A1.1_T12.js b/test/language/eval-code/S10.4.2_A1.1_T12.js deleted file mode 100755 index 75cce6ddba..0000000000 --- a/test/language/eval-code/S10.4.2_A1.1_T12.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_T12 -description: eval within global execution context ----*/ - -var i; -var j; -var str1 = ''; -var 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/language/eval-code/S10.4.2_A1.1_T13.js b/test/language/eval-code/S10.4.2_A1.1_T13.js deleted file mode 100755 index 39087b0d49..0000000000 --- a/test/language/eval-code/S10.4.2_A1.1_T13.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_T13 -description: eval within global execution context ----*/ - -var i; -var j; -var str1 = ''; -var 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/language/eval-code/S10.4.2_A1.1_T14.js b/test/language/eval-code/S10.4.2_A1.1_T14.js deleted file mode 100755 index 73e684903f..0000000000 --- a/test/language/eval-code/S10.4.2_A1.1_T14.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_T14 -description: eval within global execution context ----*/ - -var i; -var j; -var str1 = ''; -var 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/language/eval-code/S10.4.2_A1.1_T15.js b/test/language/eval-code/S10.4.2_A1.1_T15.js deleted file mode 100755 index 769609c12f..0000000000 --- a/test/language/eval-code/S10.4.2_A1.1_T15.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_T15 -description: eval within global execution context ----*/ - -var i; -var j; -var str1 = ''; -var 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/language/eval-code/S10.4.2_A1.1_T16.js b/test/language/eval-code/S10.4.2_A1.1_T16.js deleted file mode 100755 index 67756ce517..0000000000 --- a/test/language/eval-code/S10.4.2_A1.1_T16.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_T16 -description: eval within global execution context ----*/ - -var i; -var j; -var str1 = ''; -var 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"); -} - -this.y = 2; diff --git a/test/language/eval-code/S10.4.2_A1.1_T17.js b/test/language/eval-code/S10.4.2_A1.1_T17.js deleted file mode 100755 index 560df8fd4b..0000000000 --- a/test/language/eval-code/S10.4.2_A1.1_T17.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_T17 -description: eval within global execution context ----*/ - -var i; -var j; -var str1 = ''; -var 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/language/eval-code/S10.4.2_A1.1_T18.js b/test/language/eval-code/S10.4.2_A1.1_T18.js deleted file mode 100755 index 49714ee876..0000000000 --- a/test/language/eval-code/S10.4.2_A1.1_T18.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_T18 -description: eval within global execution context ----*/ - -var i; -var j; -var str1 = ''; -var 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/language/eval-code/S10.4.2_A1.1_T19.js b/test/language/eval-code/S10.4.2_A1.1_T19.js deleted file mode 100755 index 6aeecf3690..0000000000 --- a/test/language/eval-code/S10.4.2_A1.1_T19.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_T19 -description: eval within global execution context ----*/ - -var i; -var j; -var str1 = ''; -var 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/language/eval-code/S10.4.2_A1.1_T2.js b/test/language/eval-code/S10.4.2_A1.1_T2.js deleted file mode 100644 index e61dd550f5..0000000000 --- a/test/language/eval-code/S10.4.2_A1.1_T2.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: > - 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 -flags: [noStrict] ----*/ - -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/language/eval-code/S10.4.2_A1.1_T3.js b/test/language/eval-code/S10.4.2_A1.1_T3.js deleted file mode 100644 index ff24c0e1e3..0000000000 --- a/test/language/eval-code/S10.4.2_A1.1_T3.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_T3 -description: eval within global execution context -flags: [noStrict] ----*/ - -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/language/eval-code/S10.4.2_A1.1_T4.js b/test/language/eval-code/S10.4.2_A1.1_T4.js deleted file mode 100644 index 49f3d1ba2d..0000000000 --- a/test/language/eval-code/S10.4.2_A1.1_T4.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: > - 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 -flags: [noStrict] ----*/ - -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/language/eval-code/S10.4.2_A1.1_T5.js b/test/language/eval-code/S10.4.2_A1.1_T5.js deleted file mode 100644 index 72ae090cd9..0000000000 --- a/test/language/eval-code/S10.4.2_A1.1_T5.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: > - 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 -flags: [noStrict] ----*/ - -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/language/eval-code/S10.4.2_A1.1_T6.js b/test/language/eval-code/S10.4.2_A1.1_T6.js deleted file mode 100644 index b83bf3bce0..0000000000 --- a/test/language/eval-code/S10.4.2_A1.1_T6.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: > - 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 -flags: [noStrict] ----*/ - -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/language/eval-code/S10.4.2_A1.1_T7.js b/test/language/eval-code/S10.4.2_A1.1_T7.js deleted file mode 100644 index 5823aed4c2..0000000000 --- a/test/language/eval-code/S10.4.2_A1.1_T7.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: > - 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 -flags: [noStrict] ----*/ - -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/language/eval-code/S10.4.2_A1.1_T8.js b/test/language/eval-code/S10.4.2_A1.1_T8.js deleted file mode 100644 index 0aaf82dfb9..0000000000 --- a/test/language/eval-code/S10.4.2_A1.1_T8.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: > - 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 -flags: [noStrict] ----*/ - -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/language/eval-code/S10.4.2_A1.1_T9.js b/test/language/eval-code/S10.4.2_A1.1_T9.js deleted file mode 100644 index d24d7714e0..0000000000 --- a/test/language/eval-code/S10.4.2_A1.1_T9.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: > - 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 -flags: [noStrict] ----*/ - -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/language/eval-code/S10.4.2_A1.2_T1.js b/test/language/eval-code/S10.4.2_A1.2_T1.js deleted file mode 100644 index 76af3f020e..0000000000 --- a/test/language/eval-code/S10.4.2_A1.2_T1.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_T1 -description: eval within global execution context -flags: [noStrict] ----*/ - -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/language/eval-code/S10.4.2_A1.2_T10.js b/test/language/eval-code/S10.4.2_A1.2_T10.js deleted file mode 100644 index b1a6c7abcc..0000000000 --- a/test/language/eval-code/S10.4.2_A1.2_T10.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_T10 -description: eval within global execution context -flags: [noStrict] ----*/ - -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/language/eval-code/S10.4.2_A1.2_T11.js b/test/language/eval-code/S10.4.2_A1.2_T11.js deleted file mode 100644 index 9e80ebb489..0000000000 --- a/test/language/eval-code/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/language/eval-code/S10.4.2_A1.2_T2.js b/test/language/eval-code/S10.4.2_A1.2_T2.js deleted file mode 100644 index 94fca7227c..0000000000 --- a/test/language/eval-code/S10.4.2_A1.2_T2.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_T2 -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); - 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/language/eval-code/S10.4.2_A1.2_T3.js b/test/language/eval-code/S10.4.2_A1.2_T3.js deleted file mode 100644 index 832f2142d8..0000000000 --- a/test/language/eval-code/S10.4.2_A1.2_T3.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_T3 -description: eval within global execution context -flags: [noStrict] ----*/ - -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/language/eval-code/S10.4.2_A1.2_T4.js b/test/language/eval-code/S10.4.2_A1.2_T4.js deleted file mode 100644 index aad343be11..0000000000 --- a/test/language/eval-code/S10.4.2_A1.2_T4.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_T4 -description: eval within global execution context -flags: [noStrict] ----*/ - -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/language/eval-code/S10.4.2_A1.2_T5.js b/test/language/eval-code/S10.4.2_A1.2_T5.js deleted file mode 100644 index 9a8668b282..0000000000 --- a/test/language/eval-code/S10.4.2_A1.2_T5.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_T5 -description: eval within global execution context -flags: [noStrict] ----*/ - -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/language/eval-code/S10.4.2_A1.2_T6.js b/test/language/eval-code/S10.4.2_A1.2_T6.js deleted file mode 100644 index c5783b561c..0000000000 --- a/test/language/eval-code/S10.4.2_A1.2_T6.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_T6 -description: eval within global execution context -flags: [noStrict] ----*/ - -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/language/eval-code/S10.4.2_A1.2_T7.js b/test/language/eval-code/S10.4.2_A1.2_T7.js deleted file mode 100644 index 1863da61b6..0000000000 --- a/test/language/eval-code/S10.4.2_A1.2_T7.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_T7 -description: eval within global execution context -flags: [noStrict] ----*/ - -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/language/eval-code/S10.4.2_A1.2_T8.js b/test/language/eval-code/S10.4.2_A1.2_T8.js deleted file mode 100644 index e8d356c1fe..0000000000 --- a/test/language/eval-code/S10.4.2_A1.2_T8.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_T8 -description: eval within global execution context -flags: [noStrict] ----*/ - -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/language/eval-code/S10.4.2_A1.2_T9.js b/test/language/eval-code/S10.4.2_A1.2_T9.js deleted file mode 100644 index 90d6649d3f..0000000000 --- a/test/language/eval-code/S10.4.2_A1.2_T9.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_T9 -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); - - 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/language/eval-code/this-value-func-non-strict.js b/test/language/eval-code/this-value-func-non-strict.js new file mode 100644 index 0000000000..92aa3fd9ad --- /dev/null +++ b/test/language/eval-code/this-value-func-non-strict.js @@ -0,0 +1,17 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: > + Direct eval code has the same `this` binding as the calling context + (non-strict function scope) +esid: sec-performeval +flags: [noStrict] +---*/ + +var thisValue; + +(function() { + thisValue = eval('this;'); +}()); + +assert.sameValue(thisValue, this); diff --git a/test/language/eval-code/this-value-func-strict.js b/test/language/eval-code/this-value-func-strict.js new file mode 100644 index 0000000000..54bdd03588 --- /dev/null +++ b/test/language/eval-code/this-value-func-strict.js @@ -0,0 +1,17 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: > + Direct eval code has the same `this` binding as the calling context (strict + function scope) +esid: sec-performeval +flags: [onlyStrict] +---*/ + +var thisValue = null; + +(function() { + thisValue = eval('this;'); +}()); + +assert.sameValue(thisValue, undefined); diff --git a/test/language/eval-code/this-value-global.js b/test/language/eval-code/this-value-global.js new file mode 100644 index 0000000000..5d62200a7a --- /dev/null +++ b/test/language/eval-code/this-value-global.js @@ -0,0 +1,10 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: > + Direct eval code has the same `this` binding as the calling context (global + scope) +esid: sec-performeval +---*/ + +assert.sameValue(eval('this;'), this);