1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

Merge pull request #3189 from mal/issue3186

Fixes #3186
This commit is contained in:
Michael Ficarra 2013-09-29 07:42:36 -07:00
commit 6da2306fe2
2 changed files with 2 additions and 3 deletions

View file

@ -22,8 +22,6 @@
exports.VERSION = '1.6.3';
binary = require.resolve('../../bin/coffee');
fileExtensions = ['.coffee', '.litcoffee', '.coffee.md'];
exports.helpers = helpers;
@ -239,6 +237,7 @@
if (child_process) {
fork = child_process.fork;
binary = require.resolve('../../bin/coffee');
child_process.fork = function(path, args, options) {
var execPath;
if (args == null) {

View file

@ -15,7 +15,6 @@ SourceMap = require './sourcemap'
# The current CoffeeScript version number.
exports.VERSION = '1.6.3'
binary = require.resolve '../../bin/coffee'
fileExtensions = ['.coffee', '.litcoffee', '.coffee.md']
# Expose helpers for testing.
@ -205,6 +204,7 @@ if require.extensions
# to fork both CoffeeScript files, and JavaScript files, directly.
if child_process
{fork} = child_process
binary = require.resolve '../../bin/coffee'
child_process.fork = (path, args = [], options = {}) ->
execPath = if helpers.isCoffee(path) then binary else null
if not Array.isArray args