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
Arrow functions do not have a prototype so this will fail when they are reflected upon.
//GetPrototypeOf// When O = () => 'abc' this failsletprototype=O.prototype;//undefinedletprototypeProto=Object.getPrototypeOf(prototype);// throws Uncaught TypeError: Cannot convert undefined or null to object(…)if(prototypeProto==null||prototypeProto===Object.prototype){returnproto;}
Found when attempting to use an arrow function in and angular2 project with: provide(SomeToken, { useFactory: () => 'abc' })
I'd send a PR but I can't seem to get the tests running.
The text was updated successfully, but these errors were encountered:
Arrow functions do not have a prototype so this will fail when they are reflected upon.
Found when attempting to use an arrow function in and angular2 project with:
provide(SomeToken, { useFactory: () => 'abc' })
I'd send a PR but I can't seem to get the tests running.
The text was updated successfully, but these errors were encountered: