mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
don't copy arguments or caller from require
causes an error in io.js where strict-mode is set on internal modules Fixes: https://github.com/jashkenas/coffeescript/issues/3810
This commit is contained in:
@@ -175,7 +175,7 @@
|
||||
ref3 = Object.getOwnPropertyNames(require);
|
||||
for (i = 0, len = ref3.length; i < len; i++) {
|
||||
r = ref3[i];
|
||||
if (r !== 'paths') {
|
||||
if (r !== 'paths' && r !== 'arguments' && r !== 'caller') {
|
||||
_require[r] = require[r];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user