Skip to content

Commit 1c3cea1

Browse files
committed
fix: Cdp.Debugger.CallFrame.url undefined in v8 5
1 parent 98af79b commit 1c3cea1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/adapter/stackTrace.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,8 @@ export class StackFrame implements IFrameElement {
271271
this._rawLocation = rawLocation;
272272
this.uiLocation = once(() => thread.rawLocationToUiLocation(rawLocation));
273273
this._thread = thread;
274-
this.isReplEval = callFrame.url.endsWith(SourceConstants.ReplExtension);
274+
const url = callFrame.url ?? '';
275+
this.isReplEval = url.endsWith(SourceConstants.ReplExtension);
275276
}
276277

277278
/**

src/cdp/api.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6187,7 +6187,7 @@ export namespace Cdp {
61876187
* sent `Debugger.scriptParsed` event.
61886188
* @deprecated
61896189
*/
6190-
url: string;
6190+
url?: string;
61916191

61926192
/**
61936193
* Scope chain for this call frame.

0 commit comments

Comments
 (0)