Merge pull request #243 from anba/issue-35/builtins-Boolean

Fix strict mode errors in built-ins/Boolean
This commit is contained in:
Brian Terlson 2015-04-29 16:16:59 -07:00
commit 5d6f33d242
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