JS_ExecuteScriptPart does not cooperate with JS debugger

RESOLVED FIXED in M16

Status

()

Core
JavaScript Engine
P3
normal
RESOLVED FIXED
18 years ago
16 years ago

People

(Reporter: brendan, Assigned: brendan)

Tracking

({js1.5})

Trunk
js1.5
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Assignee)

Description

18 years ago
From the URL:

1) i set a callback with JSD_SetThrowHook()
2) i executed a compiled script with JS_ExecuteScriptPart( .. JSEXEC_MAIN )
.
3) the JSD throw callback was not invoked on 'throw'.
4) this did work with JS_ExecuteScript

i looked inside the code. if i understood it correctly:
1) JSD uses JS_SetNewScriptHook() and JS_SetDestroyScriptHook() to set its
own callbacks.
2) JS_ExecuteScriptPart executes using a temporary JSScript object.
3) JS_ExecuteScriptPart does not call the callbacks (from step 1) on the
temporary JSScript.

can i use JSD_ScriptCreated() and JSD_ScriptDestroyed() somehow?

             "itaj sherman" <MyNGs@HotMail.com>
(Assignee)

Updated

18 years ago
Status: NEW → ASSIGNED
Keywords: js1.5
Target Milestone: --- → M16
(Assignee)

Comment 1

18 years ago
Created attachment 9388 [details] [diff] [review]
proposed fix
(Assignee)

Comment 2

18 years ago
Roger, can you give me an r=?

/be
(Assignee)

Comment 3

18 years ago
Fix checked in.

/be
Status: ASSIGNED → RESOLVED
Last Resolved: 18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.