@jsenv/plugin-supervisor 1.5.25 → 1.5.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/js/supervisor.js
CHANGED
|
@@ -566,6 +566,17 @@ window.__supervisor__ = (() => {
|
|
|
566
566
|
stackFrames = [];
|
|
567
567
|
for (const callSite of callSites) {
|
|
568
568
|
const url = callSite.getFileName() || callSite.getScriptNameOrSourceURL();
|
|
569
|
+
if (!url) {
|
|
570
|
+
// thinks like Array.forEach can generate this
|
|
571
|
+
const stackFrame = {
|
|
572
|
+
raw: " at ".concat(String(callSite)),
|
|
573
|
+
url: null,
|
|
574
|
+
line: null,
|
|
575
|
+
column: null
|
|
576
|
+
};
|
|
577
|
+
stackFrames.push(stackFrame);
|
|
578
|
+
continue;
|
|
579
|
+
}
|
|
569
580
|
const line = callSite.getLineNumber();
|
|
570
581
|
const column = callSite.getColumnNumber();
|
|
571
582
|
const site = resolveUrlSite({
|
package/package.json
CHANGED
package/src/client/supervisor.js
CHANGED
|
@@ -528,6 +528,17 @@ window.__supervisor__ = (() => {
|
|
|
528
528
|
for (const callSite of callSites) {
|
|
529
529
|
const url =
|
|
530
530
|
callSite.getFileName() || callSite.getScriptNameOrSourceURL();
|
|
531
|
+
if (!url) {
|
|
532
|
+
// thinks like Array.forEach can generate this
|
|
533
|
+
const stackFrame = {
|
|
534
|
+
raw: ` at ${String(callSite)}`,
|
|
535
|
+
url: null,
|
|
536
|
+
line: null,
|
|
537
|
+
column: null,
|
|
538
|
+
};
|
|
539
|
+
stackFrames.push(stackFrame);
|
|
540
|
+
continue;
|
|
541
|
+
}
|
|
531
542
|
const line = callSite.getLineNumber();
|
|
532
543
|
const column = callSite.getColumnNumber();
|
|
533
544
|
const site = resolveUrlSite({ url, line, column });
|