Skip to content

Commit

Permalink
Update documentation to install GraalJS for TruffleRuby 23.1
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Sep 19, 2023
1 parent bd762b4 commit efeb421
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/mini_racer/truffleruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ def init_unsafe(isolate, snapshot)

unless Polyglot.languages.include? "js"
raise "The language 'js' is not available, you likely need to `export TRUFFLERUBYOPT='--jvm --polyglot'`\n" \
"You also need to install the 'js' component with 'gu install js' on GraalVM 22.2+\n" \
"Note that you need TruffleRuby+GraalVM and not just the TruffleRuby standalone to use MiniRacer"
"You also need to install the 'js' component, see https://github.com/oracle/truffleruby/blob/master/doc/user/polyglot.md#installing-other-languages"
end

@context = Polyglot::InnerContext.new(on_cancelled: -> {
Expand Down

0 comments on commit efeb421

Please sign in to comment.