Fix strict mode errors in built-ins/Boolean

Add missing "var" declarations and noStrict flags.

Part of issue #35.
This commit is contained in:
André Bargull 2015-04-29 17:37:09 +02:00
parent 87fd4e5699
commit 9cb5292c71
3 changed files with 4 additions and 0 deletions

View File

@ -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)+'"');

View File

@ -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

View File

@ -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