Closed Bug 620778 Opened 14 years ago Closed 8 years ago

JS_IsRunning lies when only natives are active

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: mrbkap, Unassigned)

References

Details

Consider: JSBool IsRunning(JSContext *cx, uintN argc, jsval *vp) { *vp = JS_IsRunning(cx); return true; } setTimeout(isRunning, 0); In this case, the only "JS" running, will be the fast native. JS_IsRunning looks for stack frames, of which there are none here and will return false, even though JS is running (namely, the native function IsRunning). We should probably fix this.
Assignee: general → nobody
Depends on: 981201
Bug 981201 is removing JS_IsRunning.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.