From d99503e5ca9f7da4902487d0ef5315d8aba17d98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= Date: Fri, 8 May 2015 17:40:57 +0200 Subject: [PATCH] Fix remaining strict mode errors in built-ins Add missing noStrict flags and variable declarations. Part of issue #35. --- test/built-ins/Array/S15.4.3_A2.3.js | 1 + test/built-ins/GeneratorPrototype/throw/from-state-completed.js | 2 +- .../GeneratorPrototype/throw/from-state-suspended-start.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/built-ins/Array/S15.4.3_A2.3.js b/test/built-ins/Array/S15.4.3_A2.3.js index 1dd6a2f85f..fbd42918c0 100644 --- a/test/built-ins/Array/S15.4.3_A2.3.js +++ b/test/built-ins/Array/S15.4.3_A2.3.js @@ -5,6 +5,7 @@ info: The length property of Array has the attribute ReadOnly es5id: 15.4.3_A2.3 description: Checking if varying the length property fails +flags: [noStrict] ---*/ //CHECK#1 diff --git a/test/built-ins/GeneratorPrototype/throw/from-state-completed.js b/test/built-ins/GeneratorPrototype/throw/from-state-completed.js index ce07d134c3..2054954b4f 100644 --- a/test/built-ins/GeneratorPrototype/throw/from-state-completed.js +++ b/test/built-ins/GeneratorPrototype/throw/from-state-completed.js @@ -16,7 +16,7 @@ iter.next(); assert.throws(E, function() { iter.throw(new E()); }); -result = iter.next(); +var result = iter.next(); assert.sameValue(result.value, undefined, 'Result `value`'); assert.sameValue(result.done, true, 'Result `done` flag'); diff --git a/test/built-ins/GeneratorPrototype/throw/from-state-suspended-start.js b/test/built-ins/GeneratorPrototype/throw/from-state-suspended-start.js index b3234c863c..0f42aad8f9 100644 --- a/test/built-ins/GeneratorPrototype/throw/from-state-suspended-start.js +++ b/test/built-ins/GeneratorPrototype/throw/from-state-suspended-start.js @@ -18,7 +18,7 @@ var iter; iter = G(); assert.throws(E, function() { iter.throw(new E()); }); -result = iter.next(); +var result = iter.next(); assert.sameValue(result.value, undefined, 'Result `value`'); assert.sameValue(result.done, true, 'Result `done` flag');