Skip to content

Commit

Permalink
[Truffle] We had arg0 wrong.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisseaton committed Nov 5, 2016
1 parent ac1f28e commit 03ef559
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -84,7 +84,7 @@ public abstract static class RunJRubyRootNode extends CoreMethodArrayArgumentsNo

@Specialization
public Object runJRubyRootNode(VirtualFrame frame, @Cached("create()") IndirectCallNode callNode) {
final String arg0 = getContext().getInstanceConfig().getScriptFileName();
final String arg0 = getContext().getInstanceConfig().displayedFileName();

coreLibrary().getGlobalVariables().put("$0", StringOperations.createString(
getContext(), StringOperations.encodeRope(arg0, UTF8Encoding.INSTANCE)));
Expand Down

0 comments on commit 03ef559

Please sign in to comment.