forked from google/closure-library
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop using obsolete closure primitives
Closure compiler looks for these based on the resolved name, which no longer works in es6 modules. So we inline what the compiler would do. - object.create -> object literal - object.createSet -> object literal with `true` values - reflect.objectProperty -> JSCompiler_renameProperty - reflect.object => multiple JSCompiler_renameProperty - add @pureOrBreakMyCode to reflect.cache calls There's no documentation for @pureOrBreakMyCode, but Steve Hicks from Google said that's the correct solution and this seems to be the syntax based on google/closure-compiler#4178 It seems like adding this to reflect.cache itself would work if the call is inlined. However I don't know if that always happens, so I also added it at the callsites.
- Loading branch information
Showing
29 changed files
with
1,327 additions
and
2,018 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
Oops, something went wrong.