Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[js] Tweak to nqp.dumpObj.
  • Loading branch information
pmurias committed Oct 23, 2015
1 parent 7c502f6 commit add7e11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/js/nqp-runtime/runtime.js
Expand Up @@ -400,7 +400,7 @@ exports.dumpObj = function(obj) {
return JSON.stringify(obj, function(key, value) {
if (key == '_SC') return undefined;
for (var i = 0; i < seen.length; i++) {
if (seen[i] === value) return 'circular';
if (typeof value !== 'string' && typeof value !== 'number' && seen[i] === value) return 'circular';
}
seen.push(value);
return value;
Expand Down

0 comments on commit add7e11

Please sign in to comment.