Permalink
Browse files

Find jsc when it is in your PATH so it can be used on linux as well a…

…s osx.
  • Loading branch information...
1 parent fa431c5 commit 72a5ff9e7aefdcb1bcea3c8cae18570e43ff90f6 @nwolfwood nwolfwood committed Sep 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/execjs/runtimes.rb
View
2 lib/execjs/runtimes.rb
@@ -23,7 +23,7 @@ module Runtimes
JavaScriptCore = ExternalRuntime.new(
:name => "JavaScriptCore",
- :command => "/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc",
+ :command => ["jsc", "/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc"],
:runner_path => ExecJS.root + "/support/jsc_runner.js"
)

0 comments on commit 72a5ff9

Please sign in to comment.