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 has been archived by the owner on Feb 26, 2024. It is now read-only.
As a result, create is not defined when used for properties of commonKeys and it breaks initialzation as far as I understand.
I'm not sure if it's zone.js bug or Webpack's, but JSHint also gives a warning on these two declarations so I decided to report it here. Here's the warning text: Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function. (W082)
The text was updated successfully, but these errors were encountered:
vicb
added a commit
to vicb/zone.js
that referenced
this issue
Oct 22, 2015
@ivankashtanov thanks for reporting, could you please test with #195 and let us know how this works - I have included the generated js file in the second commit for now if it could help you.
Webpack turns function declarations of
create
inlib/keys.js
into function expressions. The relevant part looks like this after Webpack processing:As a result,
create
is not defined when used for properties ofcommonKeys
and it breaks initialzation as far as I understand.I'm not sure if it's zone.js bug or Webpack's, but JSHint also gives a warning on these two declarations so I decided to report it here. Here's the warning text:
Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function. (W082)
The text was updated successfully, but these errors were encountered: