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
{{ message }}
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
var wrapFn = function (event) {
var eventNameSymbol = zoneSymbolEventNames[event.type];
if (!eventNameSymbol) {
eventNameSymbol = zoneSymbolEventNames[event.type] = zoneSymbol('ON_PROPERTY' + event.type);
}
If some calls function without parameter, if event is undefined zone crashes
In my case window.onbeforeunload is called from parent frame but zone wrapFn does not check for event parameter and trys to get it from map, and since event is undefined it crashes
var wrapFn = function (event) {
var eventNameSymbol = zoneSymbolEventNames[event.type];
if (!eventNameSymbol) {
eventNameSymbol = zoneSymbolEventNames[event.type] = zoneSymbol('ON_PROPERTY' + event.type);
}
If some calls function without parameter, if event is undefined zone crashes
In my case window.onbeforeunload is called from parent frame but zone wrapFn does not check for event parameter and trys to get it from map, and since event is undefined it crashes