mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Address review comment from bhackett (bug 672829 comment 84).
This commit is contained in:
parent
d36ff061fa
commit
b213ad1587
@ -2242,6 +2242,8 @@ DebuggerScript_setBreakpoint(JSContext *cx, uintN argc, Value *vp)
|
||||
JSCompartment *comp = script->compartment;
|
||||
jsbytecode *pc = script->code + offset;
|
||||
BreakpointSite *site = comp->getOrCreateBreakpointSite(cx, script, pc, holder);
|
||||
if (!site)
|
||||
return false;
|
||||
if (site->inc(cx)) {
|
||||
if (cx->runtime->new_<Breakpoint>(dbg, site, handler)) {
|
||||
args.rval().setUndefined();
|
||||
|
Loading…
Reference in New Issue
Block a user