Closed Bug 694554 Opened 13 years ago Closed 13 years ago

Promise class should have a private constructor

Categories

(Tamarin Graveyard :: Workers, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: dschaffe, Assigned: awelc)

References

Details

According to the workers spec the Promise class cannot be instantiated directly.

This testcase should throw an exception:

promise.as:
import flash.system.Promise

var exc:String="no exception";
try {
   new Promise();
} catch (e) {
   exc=e.toString();
}
print(exc);
$ avmshell promise.abc
no exception
$
Depends on: 695061
Added a public constructor that throws an exception.
Assignee: nobody → awelc
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
confirmed is fixed.
Status: RESOLVED → VERIFIED
Blocks: 695061
No longer depends on: 695061
You need to log in before you can comment on or make changes to this bug.