feat(zone.js): Monkey patch MessagePort.prototype onproperties (#34610)

Monkey patch `MessagePort.prototype.onmessage` and `MessagePort.prototype.onmessageerror` to make
these properties's value(callback function) run in the zone when these value are set.

PR Close #34610
This commit is contained in:
JiaLiPassion
2020-03-12 08:38:37 +09:00
committed by Andrew Kushnir
parent 05d0586223
commit 0f8e710c7c
7 changed files with 73 additions and 0 deletions

View File

@ -39,6 +39,7 @@ ES5_BUNDLES = {
"zone-patch-rxjs": _DIR + "rxjs/rxjs",
"webapis-shadydom": _DIR + "browser/shadydom",
"zone-patch-socket-io": _DIR + "extra/socket-io",
"zone-patch-message-port": _DIR + "browser/message-port",
"zone-patch-user-media": _DIR + "browser/webapis-user-media",
"zone-testing": _DIR + "testing/zone-testing",
"zone-testing-bundle": _DIR + "browser/rollup-legacy-test-main",