commit
6aec1e6949
145 changed files with 642 additions and 585 deletions
|
@ -106,7 +106,7 @@ var valueToMeta = function(sender, value, optimizeSimpleObject) {
|
|||
} else if (meta.type === 'buffer') {
|
||||
meta.value = Array.prototype.slice.call(value, 0);
|
||||
} else if (meta.type === 'promise') {
|
||||
meta.then = valueToMeta(sender, value.then.bind(value));
|
||||
meta.then = valueToMeta(sender, function(v) { value.then(v); });
|
||||
} else if (meta.type === 'error') {
|
||||
meta.members = plainObjectToMeta(value);
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ var wrapArgs = function(args, visited) {
|
|||
} else if ((value != null ? value.constructor.name : void 0) === 'Promise') {
|
||||
return {
|
||||
type: 'promise',
|
||||
then: valueToMeta(value.then.bind(value))
|
||||
then: valueToMeta(function(v) { value.then(v); })
|
||||
};
|
||||
} else if ((value != null) && typeof value === 'object' && v8Util.getHiddenValue(value, 'atomId')) {
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue