Description
This issue was originally filed by @bp74
What steps will reproduce the problem?
import('dart:html');
void main() {
AudioContext audioContext;
try {
audioContext = new AudioContext();
}
catch(final error) {
print(error);
}
}
What is the expected output? What do you see instead?
This issue came up after issue #3190 was fixed. Before the fix the catch-block wasn't called at all, after the bug was fixed the error object in the sample above leads to another problem.
The "print(error)" statement tries to convert the "error" variable to a String. In Firefox the result is "Instance of 'TypeError'" which is fine. In IE9 you get a JavaScript error:
SCRIPT5007: Unable to get value of the property 'charCodeAt$1': object is null or undefined
I have attached 3 pictures showing the call stack.
What version of the product are you using? On what operating system?
Dart Editor Build 7992 32 bit, Windows 7 64 bit.