starting worker already started fires: Assertion failed: "((values == __null))" ("../core/FixedHeapUtils-inlines.h":59)

RESOLVED FIXED

Status

Tamarin
Workers
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: Dan Schaffer, Unassigned)

Tracking

(Blocks: 1 bug)

Details

Attachments

(1 attachment)

310 bytes, text/plain
Details
(Reporter)

Description

5 years ago
call .start() on a worker already started fires an assertion in the debug shells.
The expected behavior is to throw an exception Error: Error #1511: Worker is already started.

The testcase is:
package {
    import flash.system.Worker
    import flash.system.WorkerDomain
 
    if (Worker.current.isPrimordial) {
        var w:Worker=WorkerDomain.current.createWorkerFromPrimordial();
        w.start();
        try {
            w.start();
        } catch (e) {
            print(e);
        }
        w.terminate();
    } else {
        trace("started background worker");
    }
}
(Reporter)

Updated

5 years ago
Blocks: 695061
(Reporter)

Comment 1

5 years ago
Created attachment 643392 [details]
testcase
(Reporter)

Comment 2

5 years ago
confirmed is fixed in concurrency branch as part of Promise removal cleanup.
(Reporter)

Updated

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