-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Google Closure Compiler Java update (#5720)
* Some new externs added to please Closure Compiler, small tweaks to resolve some issues with newer version * Rewrite multiple `f.write()` calls into single call with more readable JavaScript code inside * Google Closure Compiler updated to latest v20171023.0.0 * Fix for multiple duplicated `var ptr` declarations. Fixes to externs (added File API externs). * Suppress a lot of warnings that naturally occur in asm.js code * Closure Compiler should run without errors now (warnings are present, but don't cause everything to fail) * Fix JS optimizer to properly work with added suppression comment (resulted in corrupted JS build). More externs fixes. * WebIDL fixes for modern Closure Compiler * Removed externs already included in latest Closure Compiler * Fix for multiple declarations of `ASSERTION` variable. Fix for `EmterpreterAsync` usage appearing in builds without `EmterpreterAsync` definition. Suppress `FUNCTION_TABLE` undefined variable. Fix for `getterReturnType` and `setterArgumentType` used while undefined (probably copy-paste typo, replaced with `rawFieldType`). * Suppress errors about undefined variables
- Loading branch information
Showing
19 changed files
with
960 additions
and
1,118 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
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
Oops, something went wrong.
93479ec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This broke
browser.test_emterpretify_file
and a bunch of others, with a browser console message that mentionsReferenceError: ASSERTIONS is not defined
, so looks related to the recent changes to that variable.cc @nazar-pc @buu700
93479ec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought this was just emterpreter stuff, but looks like it hits several others, e.g.
browser.test_emscripten_main_loop_setimmediate
93479ec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we just need to move
var ASSERTIONS
fromjsifier.js
intopreamble.js
or some other common for all builds file, since it is now always defined.93479ec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filled #5749 that aims to resolve this, but need confirmation from @buu700
93479ec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also broke several browser tests, such as
browser.test_cubegeom_glew
. Looks like they all use GL and closure together.93479ec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will look at it shortly
93479ec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filled #5765 that resolves major Closure Compiler complains at least for mentioned
browser.test_cubegeom_glew