mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
Bad variable name clobbers correct path in compile
event.
This commit is contained in:
parent
9290e508c6
commit
cd67ec6e69
2 changed files with 4 additions and 4 deletions
|
@ -95,14 +95,14 @@
|
|||
return _d;
|
||||
};
|
||||
compileScript = function(file, input, base) {
|
||||
var _d, _e, _f, o, options, t, task;
|
||||
var _d, _e, _f, o, options, req, t, task;
|
||||
o = opts;
|
||||
options = compileOptions(file);
|
||||
if (o.require) {
|
||||
_e = o.require;
|
||||
for (_d = 0, _f = _e.length; _d < _f; _d++) {
|
||||
file = _e[_d];
|
||||
require(helpers.starts(file, '.') ? fs.realpathSync(file) : file);
|
||||
req = _e[_d];
|
||||
require(helpers.starts(req, '.') ? fs.realpathSync(req) : req);
|
||||
}
|
||||
}
|
||||
try {
|
||||
|
|
|
@ -96,7 +96,7 @@ compileScript = (file, input, base) ->
|
|||
o = opts
|
||||
options = compileOptions file
|
||||
if o.require
|
||||
require(if helpers.starts(file, '.') then fs.realpathSync(file) else file) for file in o.require
|
||||
require(if helpers.starts(req, '.') then fs.realpathSync(req) else req) for req in o.require
|
||||
try
|
||||
t = task = {file, input, options}
|
||||
CoffeeScript.emit 'compile', task
|
||||
|
|
Loading…
Add table
Reference in a new issue