Closed Bug 41066 Opened 24 years ago Closed 24 years ago

JS_ExecuteScriptPart does not cooperate with JS debugger

Categories

(Core :: JavaScript Engine, defect, P3)

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: brendan, Assigned: brendan)

References

()

Details

(Keywords: js1.5)

Attachments

(1 file)

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>
Status: NEW → ASSIGNED
Keywords: js1.5
Target Milestone: --- → M16
Attached patch proposed fixSplinter Review
Roger, can you give me an r=?

/be
Fix checked in.

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

Attachment

General

Created:
Updated:
Size: