From 9cb5292c71745baf7de1036fac7f8dd7395e9e95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= <andre.bargull@gmail.com> Date: Wed, 29 Apr 2015 17:37:09 +0200 Subject: [PATCH] Fix strict mode errors in built-ins/Boolean Add missing "var" declarations and noStrict flags. Part of issue #35. --- test/built-ins/Boolean/S15.6.1.1_A1_T5.js | 2 ++ test/built-ins/Boolean/prototype/S15.6.3.1_A2.js | 1 + test/built-ins/Boolean/prototype/S15.6.3.1_A3.js | 1 + 3 files changed, 4 insertions(+) diff --git a/test/built-ins/Boolean/S15.6.1.1_A1_T5.js b/test/built-ins/Boolean/S15.6.1.1_A1_T5.js index 2114e19958..e0fd8d8c77 100644 --- a/test/built-ins/Boolean/S15.6.1.1_A1_T5.js +++ b/test/built-ins/Boolean/S15.6.1.1_A1_T5.js @@ -9,6 +9,8 @@ es5id: 15.6.1.1_A1_T5 description: Used various assigning values to any variable as argument ---*/ +var x; + //CHECK#1 if( typeof Boolean(x=0) !== "boolean" ) { $ERROR('#1.1: typeof Boolean(x=0) should be "boolean", actual is "'+typeof Boolean(x=0)+'"'); diff --git a/test/built-ins/Boolean/prototype/S15.6.3.1_A2.js b/test/built-ins/Boolean/prototype/S15.6.3.1_A2.js index f276ec5ccc..c834d39fd2 100644 --- a/test/built-ins/Boolean/prototype/S15.6.3.1_A2.js +++ b/test/built-ins/Boolean/prototype/S15.6.3.1_A2.js @@ -5,6 +5,7 @@ info: Boolean.prototype has the attribute ReadOnly es5id: 15.6.3.1_A2 description: Checking if varying the Boolean.prototype property fails +flags: [noStrict] ---*/ // CHECK#1 diff --git a/test/built-ins/Boolean/prototype/S15.6.3.1_A3.js b/test/built-ins/Boolean/prototype/S15.6.3.1_A3.js index 6163f75ec0..3decf9d447 100644 --- a/test/built-ins/Boolean/prototype/S15.6.3.1_A3.js +++ b/test/built-ins/Boolean/prototype/S15.6.3.1_A3.js @@ -5,6 +5,7 @@ info: Boolean.prototype has the attribute DontDelete es5id: 15.6.3.1_A3 description: Checking if deleting the Boolean.prototype property fails +flags: [noStrict] ---*/ // CHECK#1 -- GitLab