Add RPC handling for the type and optional properties

This commit is contained in:
Thomas Goyne 2017-09-26 12:37:36 -07:00
parent c7e44cd01f
commit d1248b6676
1 changed files with 6 additions and 0 deletions

View File

@ -117,6 +117,12 @@ export function createCollection(prototype, realmId, info, _mutable) {
'length': { 'length': {
get: getterForProperty('length'), get: getterForProperty('length'),
}, },
'type': {
get: getterForProperty('type'),
},
'optional': {
get: getterForProperty('optional'),
},
'-1': { '-1': {
value: undefined, value: undefined,
}, },