Skip to content

Commit 3321b83

Browse files
committed
Fix stack frames bug
1 parent fe16794 commit 3321b83

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/webkit/webKitDebugAdapter.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -507,15 +507,12 @@ export class WebKitDebugAdapter implements IDebugAdapter {
507507
} :
508508
{
509509
// Name should be undefined, work around VS Code bug 20274
510-
name: 'eval: ' + script.scriptId,
510+
name: undefined,
511511
sourceReference: scriptIdToSourceReference(script.scriptId)
512512
};
513513
}
514514
else {
515-
source = {
516-
name: 'eval: ' + 1,
517-
sourceReference: scriptIdToSourceReference('1')
518-
};
515+
source = { name: 'eval: Unknown' };
519516
}
520517

521518
// If the frame doesn't have a function name, it's either an anonymous function

0 commit comments

Comments
 (0)