Skip to content

Commit

Permalink
Merge pull request #23 from lunks/prioritize-node-over-jsc-on-osx
Browse files Browse the repository at this point in the history
Use node.js if available instead of JavascriptCore on OSX.
  • Loading branch information
rafaelfranca committed Aug 14, 2015
2 parents 329353b + 2f3d259 commit 33e51ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/execjs/runtimes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def self.from_environment
if name = ENV["EXECJS_RUNTIME"]
raise RuntimeUnavailable, "#{name} runtime is not defined" unless const_defined?(name)
runtime = const_get(name)

raise RuntimeUnavailable, "#{runtime.name} runtime is not available on this system" unless runtime.available?
runtime
end
Expand All @@ -72,8 +72,8 @@ def self.runtimes
RubyRacer,
RubyRhino,
Duktape,
JavaScriptCore,
Node,
JavaScriptCore,
SpiderMonkey,
JScript
]
Expand Down

0 comments on commit 33e51ad

Please sign in to comment.