We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c502f6 commit add7e11Copy full SHA for add7e11
src/vm/js/nqp-runtime/runtime.js
@@ -400,7 +400,7 @@ exports.dumpObj = function(obj) {
400
return JSON.stringify(obj, function(key, value) {
401
if (key == '_SC') return undefined;
402
for (var i = 0; i < seen.length; i++) {
403
- if (seen[i] === value) return 'circular';
+ if (typeof value !== 'string' && typeof value !== 'number' && seen[i] === value) return 'circular';
404
}
405
seen.push(value);
406
return value;
0 commit comments