-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extend throws when run under strict mode #5
Comments
@dobrite this is why you cannot turn on global strict mode. You must turn on strict mode at a per file level. |
In regards to a global I do feel that a utility library should adhere to strict mode, in this case skipping the In any case thanks for the quick response and happy new year! 🎉 |
Interestingly the problem you described doesn't exist in node but exists in chrome. |
I can reproduce the problem in node 0.11.x still For example
|
I updated my comment above (sorry). Since it already is a no-op on Chrome |
@dobrite I can skip the I'm taking advantage of the fact that assigning |
@dobrite how exactly are you using webpack and cycle together ? |
It's just cyclejs''s README code and a minimal I have to run out the door but I'll throw up a repo later. cheers! |
Might be related to Raynos/xtend#25 |
I think webpack might be enforcing a global 'use strict' then. Cycle.js doesn't do that, it uses strict per file only. |
So the issue was I think I can get by with excluding I apologize for the issues as it ultimately was not your libraries. Thank you both for your help! Cheers 🍻 |
First off let me say thanks for all your open-source work! It is because of people like you I've learned some incredible things.
I also want to say I'm not sure what to do about this, or where the fix should lie so feel free to point the finger elsewhere 😄
This issue is related to this issue in cycle.js. cycle.js runs in strict mode. This recent commit ends up assigning the
name
property ofsource
to thetarget
function objectcreateError
which is usually a no-op but throws understrict mode
with at least chrome.The text was updated successfully, but these errors were encountered: