Update test to include object and symbol

This commit is contained in:
Ujjwal Sharma 2018-09-29 07:19:53 +05:30 committed by Rick Waldron
parent 5fe9773f44
commit 2ecd230b63
2 changed files with 6 additions and 1 deletions

View File

@ -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 => {