This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
Closure Library v20190513
New Additions
- goog.ui.PopupMenu now can be overridden with the browser context menu via setShiftOverride
Backwards Incompatible Changes
- Fix goog.base not working in ES5 classes that have ES6 subclasses. This is not IE8 compatible and other pre-ES5 javascript environments.
- Add
divideAndRemainder
andabs
togoog.math.Integer
.
Other Changes
- Initialize goog.global correctly when running as an ES module
- Bugfix that allows compiler to optimize out closure deps
- Add an additional clarifying comment to goog.global in ES modules
- Print message error in addition to stacktrace in globalError handler in jsunit tests.
- Add the ability to enable js error reporting for uncaught errors in native promise and async/await functions. For native promises, install a protected entrypoint function around
Promise.prototype.then
. For async/await, listen to unhandledrejection events on browsers that support it. - In the unhandledrejection event handler, avoid dereferencing the window object since it's unneeded and protect against the case where the unhandledrejection event/event.reason is undefined.
- Ensure that the closure compiler views calls to goog.require('goog.math.Integer') as side-effect free.