Generated Javascript causes uncaught exception in Opera #2889
Labels
closed-obsolete
Closed as the reported issue is no longer relevant
web-libraries
Issues impacting dart:html, etc., libraries
Milestone
I have this line of code in a class constructor that is called from main():
try {
foo = document.query('title').id;
}
catch(var e) {
foo = null;
}
This works in Chrome and Firefox. In Opera 11.62, on Linux, this blows up.
Uncaught exception: Error
Error thrown at line 12, column 2 in $throw(e) in file://localhost/home/gram/dart/test/test.dart.js:
throw e;
called from line 306, column 10 in <anonymous function: method>() in file://localhost/home/gram/dart/test/test.dart.js:
$throw(new NoSuchMethodException(
called via Function.prototype.apply() from line 317, column 4 in $dynamicBind() in file://localhost/home/gram/dart/test/test.dart.js:
return method.apply(this, Array.prototype.slice.call(arguments));
called from line 4163, column 2 in Episodes(_includePerfMarks, _autorun) in file://localhost/home/gram/dart/test/test.dart.js:
var foo = get$$document().query("title").get$id();
called from line 4615, column 2 in main() in file://localhost/home/gram/dart/test/test.dart.js:
$globals.episodes = new Episodes(true, true);
called from line 4673, column 4 in <anonymous function>(e) in file://localhost/home/gram/dart/test/test.dart.js:
main();
The text was updated successfully, but these errors were encountered: