Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated Javascript causes uncaught exception in Opera #2889

Closed
gramster opened this issue May 3, 2012 · 8 comments
Closed

Generated Javascript causes uncaught exception in Opera #2889

gramster opened this issue May 3, 2012 · 8 comments
Labels
closed-obsolete Closed as the reported issue is no longer relevant web-libraries Issues impacting dart:html, etc., libraries
Milestone

Comments

@gramster
Copy link

gramster commented May 3, 2012

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();

@anders-sandholm
Copy link
Contributor

Added Area-Frog, Triaged labels.

@anders-sandholm
Copy link
Contributor

Removed Area-Frog label.
Added Area-Dart2JS, OldAreaFrog labels.

@anders-sandholm
Copy link
Contributor

Removed OldAreaFrog label.
Added FromAreaFrog label.

@kasperl
Copy link

kasperl commented Jun 12, 2012

Removed Area-Dart2JS, FromAreaFrog labels.
Added Area-DOM label.

@vsmenon
Copy link
Member

vsmenon commented Jul 16, 2012

This looks related to issue #2397.


cc @kasperl.
cc @rakudrama.
Added this to the M1 milestone.

@vsmenon
Copy link
Member

vsmenon commented Jul 16, 2012

Marked this as being blocked by #4111.

@iposva-google
Copy link
Contributor

Removed Area-DOM label.
Added Area-HTML label.

@vsmenon
Copy link
Member

vsmenon commented Aug 23, 2012

Added AssumedStale label.

@gramster gramster added Type-Defect web-libraries Issues impacting dart:html, etc., libraries closed-obsolete Closed as the reported issue is no longer relevant labels Aug 23, 2012
@gramster gramster added this to the M1 milestone Aug 23, 2012
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-obsolete Closed as the reported issue is no longer relevant web-libraries Issues impacting dart:html, etc., libraries
Projects
None yet
Development

No branches or pull requests

5 participants