Skip to content

Commit db61e3c

Browse files
committed
refactor: remove outdated comments regarding filename and funcname pointers in debug trace handler
1 parent 80733f9 commit db61e3c

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

quickjs.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -532,9 +532,6 @@ JS_EXTERN JSValue JS_GetFunctionProto(JSContext *ctx);
532532
the callback raises an exception via JS_Throw* but returns 0, the
533533
engine still treats it as a request to abort.
534534
535-
The filename / funcname pointers passed to the callback are only valid
536-
for the duration of the callback invocation; do not store them.
537-
538535
OP_debug opcodes are only emitted at statement boundaries when a debug
539536
trace handler is registered at parse time. Therefore only code that
540537
is parsed (e.g. by JS_Eval / JS_Compile) AFTER JS_SetDebugTraceHandler

0 commit comments

Comments
 (0)