Skip to content

Commit dbc03c7

Browse files
stringifyArguments inserts '?' for unidentified arg
1 parent 96f5ab6 commit dbc03c7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stacktrace.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@
298298
} else if (arg === null) {
299299
result[i] = 'null';
300300
} else if (arg.constructor) {
301+
// TODO constructor comparison does not work for iframes
301302
if (arg.constructor === Array) {
302303
if (arg.length < 3) {
303304
result[i] = '[' + this.stringifyArguments(arg) + ']';
@@ -312,6 +313,8 @@
312313
result[i] = '"' + arg + '"';
313314
} else if (arg.constructor === Number) {
314315
result[i] = arg;
316+
} else {
317+
result[i] = '?';
315318
}
316319
}
317320
}

0 commit comments

Comments
 (0)