You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are experiencing an issue running a project in IE10 and IE11 using compiled JS from dart2js with CSP mode enabled. I have created a reduced test-case that exhibits the issue with no external dependencies:
In the image above, constructor.name is null, which causes cls to be null, etc.
Simply switching CSP mode to false in the pubspec.yaml fixes the issue. However, we do require CSP-compliant JS in our production applications so this has become a roadblock.
The text was updated successfully, but these errors were encountered:
IE does not have a "name" field on functions. Therefore we set it, if it's missing. However, the test doing that ("name" in constructor) was not using the right precedences.
Fixes#23623.
BUG= http://dartbug.com/23623
R=herhut@google.com
Review URL: https://codereview.chromium.org//1189983004.
We are experiencing an issue running a project in IE10 and IE11 using compiled JS from dart2js with CSP mode enabled. I have created a reduced test-case that exhibits the issue with no external dependencies:
pubspec.yaml
web/index.dart
web/index.html
The resulting error (in IE11):
In the image above,
constructor.name
is null, which causescls
to be null, etc.Simply switching CSP mode to
false
in thepubspec.yaml
fixes the issue. However, we do require CSP-compliant JS in our production applications so this has become a roadblock.The text was updated successfully, but these errors were encountered: