mirror of
https://github.com/tc39/test262.git
synced 2025-07-03 04:04:42 +02:00
Update test to include object and symbol
This commit is contained in:
parent
bb7585bdaf
commit
e9946587b9
@ -15,7 +15,9 @@ info: |
|
|||||||
const toObjectResults = [
|
const toObjectResults = [
|
||||||
[true, new Boolean(true)],
|
[true, new Boolean(true)],
|
||||||
[42, new Number(42)],
|
[42, new Number(42)],
|
||||||
['foo', new String('foo')]
|
['foo', new String('foo')],
|
||||||
|
[{}, {}],
|
||||||
|
[Symbol(), Object(Symbol())]
|
||||||
];
|
];
|
||||||
|
|
||||||
// Test if ToObject is used to convert primitives to Objects.
|
// Test if ToObject is used to convert primitives to Objects.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user