mirror of
https://github.com/tc39/test262.git
synced 2025-07-14 09:34:37 +02:00
Update test to include object and symbol
This commit is contained in:
parent
5fe9773f44
commit
2ecd230b63
@ -12,7 +12,12 @@ info: |
|
||||
4.a. Let O be ? ToObject(locales).
|
||||
---*/
|
||||
|
||||
const toObjectResults = [[true, new Boolean(true)], [42, new Number(42)]];
|
||||
const toObjectResults = [
|
||||
[true, new Boolean(true)],
|
||||
[42, new Number(42)],
|
||||
[{}, {}],
|
||||
[Symbol(), Object(Symbol())]
|
||||
];
|
||||
|
||||
// Test if ToObject is used to convert primitives to Objects.
|
||||
toObjectResults.forEach(pair => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user