getObjectMemebers -> getObjectMembers
This commit is contained in:
parent
3230927f10
commit
fe9e026f9e
1 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@ const FUNCTION_PROPERTIES = [
|
||||||
let rendererFunctions = {};
|
let rendererFunctions = {};
|
||||||
|
|
||||||
// Return the description of object's members:
|
// Return the description of object's members:
|
||||||
let getObjectMemebers = function(object) {
|
let getObjectMembers = function(object) {
|
||||||
let names = Object.getOwnPropertyNames(object);
|
let names = Object.getOwnPropertyNames(object);
|
||||||
// For Function, we should not override following properties even though they
|
// For Function, we should not override following properties even though they
|
||||||
// are "own" properties.
|
// are "own" properties.
|
||||||
|
@ -46,7 +46,7 @@ let getObjectPrototype = function(object) {
|
||||||
if (proto === null || proto === Object.prototype)
|
if (proto === null || proto === Object.prototype)
|
||||||
return null;
|
return null;
|
||||||
return {
|
return {
|
||||||
members: getObjectMemebers(proto),
|
members: getObjectMembers(proto),
|
||||||
proto: getObjectPrototype(proto),
|
proto: getObjectPrototype(proto),
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -101,7 +101,7 @@ var valueToMeta = function(sender, value, optimizeSimpleObject) {
|
||||||
// passed to renderer we would assume the renderer keeps a reference of
|
// passed to renderer we would assume the renderer keeps a reference of
|
||||||
// it.
|
// it.
|
||||||
meta.id = objectsRegistry.add(sender, value);
|
meta.id = objectsRegistry.add(sender, value);
|
||||||
meta.members = getObjectMemebers(value);
|
meta.members = getObjectMembers(value);
|
||||||
meta.proto = getObjectPrototype(value);
|
meta.proto = getObjectPrototype(value);
|
||||||
} else if (meta.type === 'buffer') {
|
} else if (meta.type === 'buffer') {
|
||||||
meta.value = Array.prototype.slice.call(value, 0);
|
meta.value = Array.prototype.slice.call(value, 0);
|
||||||
|
|
Loading…
Reference in a new issue