Minor syntax improvements to JS shim

This commit is contained in:
Scott Kyle 2015-10-14 16:05:49 -07:00
parent 8ee6e757ee
commit 44eea1e036
2 changed files with 3 additions and 3 deletions

View File

@ -128,7 +128,7 @@ function serialize(realmId, value) {
throw new Error('Unable to serialize value from another Realm');
}
return {id: id};
return {id};
}
if (Array.isArray(value)) {

View File

@ -7,8 +7,8 @@ let resizeListKey = exports.resizeListKey = Symbol();
exports.createList = createList;
function createList(prototype, getterForLength, getterForIndex, setterForIndex) {
var list = prototype ? Object.create(prototype) : {};
var size = 0;
let list = prototype ? Object.create(prototype) : {};
let size = 0;
Object.defineProperty(list, 'length', {get: getterForLength});