mirror of
https://github.com/tc39/test262.git
synced 2025-07-21 21:14:45 +02:00
Fix strict mode errors in built-ins/Boolean
Add missing "var" declarations and noStrict flags. Part of issue #35.
This commit is contained in:
parent
87fd4e5699
commit
9cb5292c71
@ -9,6 +9,8 @@ es5id: 15.6.1.1_A1_T5
|
|||||||
description: Used various assigning values to any variable as argument
|
description: Used various assigning values to any variable as argument
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
var x;
|
||||||
|
|
||||||
//CHECK#1
|
//CHECK#1
|
||||||
if( typeof Boolean(x=0) !== "boolean" ) {
|
if( typeof Boolean(x=0) !== "boolean" ) {
|
||||||
$ERROR('#1.1: typeof Boolean(x=0) should be "boolean", actual is "'+typeof Boolean(x=0)+'"');
|
$ERROR('#1.1: typeof Boolean(x=0) should be "boolean", actual is "'+typeof Boolean(x=0)+'"');
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
info: Boolean.prototype has the attribute ReadOnly
|
info: Boolean.prototype has the attribute ReadOnly
|
||||||
es5id: 15.6.3.1_A2
|
es5id: 15.6.3.1_A2
|
||||||
description: Checking if varying the Boolean.prototype property fails
|
description: Checking if varying the Boolean.prototype property fails
|
||||||
|
flags: [noStrict]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
// CHECK#1
|
// CHECK#1
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
info: Boolean.prototype has the attribute DontDelete
|
info: Boolean.prototype has the attribute DontDelete
|
||||||
es5id: 15.6.3.1_A3
|
es5id: 15.6.3.1_A3
|
||||||
description: Checking if deleting the Boolean.prototype property fails
|
description: Checking if deleting the Boolean.prototype property fails
|
||||||
|
flags: [noStrict]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
// CHECK#1
|
// CHECK#1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user