mirror of
https://github.com/tc39/test262.git
synced 2025-09-26 03:28:50 +02:00
Enable strict mode testing for sm/Boolean
This commit is contained in:
parent
630ecb4eb8
commit
00872ab917
@ -2,12 +2,11 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
flags:
|
|
||||||
- noStrict
|
|
||||||
description: |
|
description: |
|
||||||
pending
|
pending
|
||||||
esid: pending
|
esid: pending
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Any copyright is dedicated to the Public Domain.
|
* Any copyright is dedicated to the Public Domain.
|
||||||
* http://creativecommons.org/licenses/publicdomain/
|
* http://creativecommons.org/licenses/publicdomain/
|
||||||
@ -22,4 +21,3 @@ assert.sameValue(Boolean.prototype.hasOwnProperty('toJSON'), false);
|
|||||||
|
|
||||||
Object.prototype.toJSON = function() { return 2; };
|
Object.prototype.toJSON = function() { return 2; };
|
||||||
assert.sameValue(JSON.stringify(new Boolean(true)), "2");
|
assert.sameValue(JSON.stringify(new Boolean(true)), "2");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user