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.

"Expecting function" error under Microsoft Edge with zone.js 0.5.2 & Angular 2 alpha 33 #150

@dsebastien

Description

@dsebastien

Currently, the 'patchEventTargetMethods' method in utils.js seems to cause an error under Microsoft Edge. The bind operation fails because the function object that is passed is not of type 'function' as expected but is an object instance of type 'FunctionWrapper'.

Here's the output I get in the console:

SCRIPT5022: Expecting function got: [object FunctionWrapper]
core.js (44,7)

Putting a breakpoint in the bind function, I see that typeof fn returns "object".

I'm not sure whether the issue is actually caused by zone.js, angular or another dependency and I don't really know how to go about and debug it..

Here's a basic plunker that has the issue: http://embed.plnkr.co/GohfcaiNrwVRn8Hq42tM/preview

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions