Closed
Bug 723980
Opened 14 years ago
Closed 14 years ago
fixed length Vector throws "Cannot change the length of a fixed Vector." exception when passed across workers
Categories
(Tamarin Graveyard :: Workers, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: dschaffe, Assigned: kpalacz)
References
Details
passed a fixed length Vector throws an exception when passed across a worker. When running this example the Cannot change the length of a fixed Vector exception is thrown.
package {
import flash.system.*;
public function start() {
if (Worker.current.isPrimordial()) {
// fails when vector is fixed length
var vec:Vector.<int>=new Vector.<int>(10,true);
for (var i:int=0;i<10;i++) {
vec[i]=i;
}
var w:Worker=WorkerDomain.current.createWorkerFromPrimordial();
var r:Promise=w.start();
var p:Promise=r.async::echo(vec);
print(p.receive());
w.stop();
}
}
public function echo(o:Object):Object {
return o;
}
start();
}
$ avmshell_s fixedvectbug.abc
RangeError: Error #1126: Cannot change the length of a fixed Vector.
at flash.system::MessageChannel/send()
at flash.system::Promise/callProperty()
at global/start()[fixedvectbug.as:12]
at global$init()[fixedvectbug.as:20]
| Reporter | ||
Updated•14 years ago
|
Summary: fixed length Vector throws exception when passed background worker → fixed length Vector throws "Cannot change the length of a fixed Vector." exception when passed across workers
| Assignee | ||
Updated•14 years ago
|
Assignee: nobody → kpalacz
| Assignee | ||
Comment 1•14 years ago
|
||
fixed as of changeset 8119:a5055ab69bfb
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•