-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
dart2js + isolates: $.IsolateNatives_computeThisScript computes the wrong script (REGRESSION) #8455
Comments
Context. It's the call to new Worker(uri) with the bad URI that causes the DOM Exception 12 See attached. Attachment: |
Added this to the M4 milestone. |
I may have a fix for this in my CL for deferred loading of static functions. |
Set owner to @peter-ahe-google. |
Marked as being merged into #90. |
Marked as being merged into #7369. |
Fixed in r18648. |
The fix failed on IE10. I reverted the change in r18649. |
Should be fixed with r18648, r18694, and r18695. But it isn't. The problem is that dart.js uses replaceChild, rather than appendChild. This makes it impossible to figure out what the current script is. If I apply this patch to dart.js: --- a/dart/pkg/browser/lib/dart.js
I get these errors like this: bot_async Removed the owner. |
Vijay, could you please assign this bug to someone familiar with pkg/browser/lib/dart.js? Set owner to @vsmenon. |
I have attached a small repro. Attachments: |
In the repro, compiler test.dart like this: dart2js test.dart -otest.dart.js |
Bumping the priority. This is a regression. Any updates? Removed Priority-Medium label. |
This comment was originally written by [email protected] Issue #9493 has been merged into this issue. |
This comment was originally written by [email protected] Added C2 label. |
Issue #9493 has been merged into this issue. |
What steps will reproduce the problem?
What is the expected output? What do you see instead?
Expected: everything works, just like in Dart.
Instead: A bunch of
Caught Error: SYNTAX_ERR: DOM Exception 12
What version of the product are you using? On what operating system?
Dart VM version: 0.3.5.1 r18300 (Fri Feb 8 23:49:41 2013)
Please provide any additional information below.
After debugging, it seems that the func:
$.IsolateNatives_computeThisScript
Returns the wrong script.
In this case the returned script uri is ""
In other cases, it's returned the google analytics script: "http://www.google-analytics.com/ga.js"
The text was updated successfully, but these errors were encountered: