mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
merged tanob's fix for installing outside of /usr/local without a /bin
This commit is contained in:
parent
0410748e2d
commit
f86fca2739
3 changed files with 9 additions and 9 deletions
|
@ -54,8 +54,8 @@
|
|||
exports.run = (function(code, options) {
|
||||
var __dirname, __filename;
|
||||
module.filename = (__filename = options.source);
|
||||
__dirname = path.dirname(__filename, eval(exports.compile(code, options)));
|
||||
return __dirname;
|
||||
__dirname = path.dirname(__filename);
|
||||
return eval(exports.compile(code, options));
|
||||
});
|
||||
// Extend CoffeeScript with a custom language extension. It should hook in to
|
||||
// the **Lexer** (as a peer of any of the lexer's tokenizing methods), and
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue