Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

ZoneJs 8.17 break call of event listeners #885

@nasrullo

Description

@nasrullo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions