Update test to include object and symbol

This commit is contained in:
Ujjwal Sharma 2018-09-29 07:26:42 +05:30 committed by Rick Waldron
parent bb7585bdaf
commit e9946587b9
1 changed files with 3 additions and 1 deletions

View File

@ -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.