Closed Bug 742374 Opened 13 years ago Closed 13 years ago

in workers shell event listener not receiving worker state changes

Categories

(Tamarin Graveyard :: Workers, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dschaffe, Unassigned)

References

Details

injected in: changeset: 8110:3023d5f22f0a branch: integration tag: tip user: kpalacz@adobe.com date: Tue Apr 03 16:51:20 2012 -0700 summary: tweaks to tracing channel buffers, made TraitsMorpher exactly gcd on all platforms the workers events listener in the shell are not called $ avmshell_d as3/Workers/WorkerExperimental.abc Listener received all events = 0 FAILED! expected: 4 The test code does: var w:Worker=WorkerDomain.current.createWorkerFromPrimordial(); var events=[] function listener(e) { print("listener: "+e); eventMap=["empty","NEW","STARTING","RUNNING","FINISHING","STOPPED","FAILED","ABORTED","EXCEPTION"]; events.push(""+e.target+" "+eventMap[e.previousState]+" to "+eventMap[e.currentState]); } w.addEventListener(WorkerEvent.WORKER_STATE, listener); var p1:Promise=w.start(); var p2:Promise=p1.async.echo("hello"); print(p2.receive()); w.stop(); Worker.handleLifecycleEvents();
Blocks: 695061
fixed in 8112:40456dd286c5
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.