Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit cd7e58d

Browse files
committed
Support JRuby closes #84
1 parent 3750d46 commit cd7e58d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/reactive-ruby/server_rendering/contextual_renderer.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ def render(component_name, props, prerender_options)
2222
private
2323

2424
def v8_runtime?
25-
ExecJS.runtime.name == "(V8)"
25+
ExecJS.runtime.name == "(V8)" || ExecJS.runtime.name == "therubyrhino (Rhino)"
2626
end
2727

2828
def v8_context
2929
@v8_context ||= @context.instance_variable_get("@v8_context")
30+
@v8_context ||= @context.instance_variable_get("@rhino_context")
3031
end
3132
end
3233
end

0 commit comments

Comments
 (0)