-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable including libraries with a preamble via the HTML script tag
Mutating the self variable with Object.create on the window global makes objects included on js.context within Dart unavailable in the browser environment. Fix this issue by only preventing encapsulation via Object.create when necessary and not in the browser. Additionally, browsers tend to not have CommonJS globals available. To prevent ReferenceErrors when running in the browser, check if these globals are available before setting them on self.
- Loading branch information
Showing
3 changed files
with
18 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.