Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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)));

0 comments on commit 03ef559

Please sign in to comment.