mirror of https://github.com/tc39/test262.git
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).
|
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.
|
// Test if ToObject is used to convert primitives to Objects.
|
||||||
toObjectResults.forEach(pair => {
|
toObjectResults.forEach(pair => {
|
||||||
|
|
Loading…
Reference in New Issue