|
ActionScript |
JavaScript + Closure annotation |
Notes |
---|---|---|---|
ArgumentError |
ArgumentError |
ArgumentError |
We implement a utility class in the global namespace |
Array |
Array |
Array |
Not sure if all properties and methods of AS Array class map to the JS Array class |
Class |
- |
- |
|
Date |
Date |
Date |
The JS class seems to be missing all the properties that the AS class offers. The methods on both classes match, AFAICT |
DefinitionError |
DefinitionError |
DefinitionError |
We implement a utility class in the global namespace |
Error |
Error |
Error |
There is no 'errorID' property on the JS Error class |
EvalError |
EvalError |
EvalError |
Not sure if all JS VM implementations support this |
int |
int |
int |
A utility class based on the JS Number class |
JSON |
JSON |
JSON |
How about support for "older" browsers? Do we provide "if not JSON, add custom JSON to window object"? |
Namespace |
Namespace |
Namespace |
We implement a utility class in the global namespace |
Object |
Object |
Object |
"setPropertyIsEnumerable" not available on JS Object.prototype |
RangeError |
RangeError |
RangeError |
Not sure if all JS VM implementations support this |
ReferenceError |
ReferenceError |
ReferenceError |
Not sure if all JS VM implementations support this |
RegExp |
RegExp |
RegExp |
Does the regular expression "syntax" of both implementations match? |
SecurityError |
SecurityError |
SecurityError |
We implement a utility class in the global namespace |
String |
String |
String |
Not sure if all properties and methods of AS String class map to the JS String class |
SyntaxError |
SyntaxError |
SyntaxError |
Not sure if all JS VM implementations support this |
TypeError |
TypeError |
TypeError |
Not sure if all JS VM implementations support this |
uint |
uint |
uint |
A utility class based on the JS Number class |
URIError |
URIError |
URIError |
Not sure if all JS VM implementations support this |
Vector |
Vector |
/** * @type {Array.<type>} */ Vector |
Since a Vector is "nothing more" than a typed Array, we can use Closure annotation to 'force' the Closure Compiler to treat it as such. And we can 'extend' the JS Array class, just so we can use the 'Vector' name? |
VerifyError |
VerifyError |
VerifyError |
We implement a utility class in the global namespace |