Skip to content

Commit

Permalink
[JVM] Default to empty string in nqp::execname
Browse files Browse the repository at this point in the history
Otherwise we'd need an additional null check for the JVM backend,
while on other backends, we're just checking if nqp::execname()
gave an empty string.
  • Loading branch information
usev6 committed Aug 14, 2020
1 parent 36670be commit 4fa57a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/jvm/runtime/org/raku/nqp/runtime/Ops.java
Expand Up @@ -5516,7 +5516,7 @@ else if (env.containsKey("perl6.execname"))
else if (env.containsKey("nqp.execname"))
return env.getProperty("nqp.execname");

return null;
return "";
}

/* Thread related. */
Expand Down

0 comments on commit 4fa57a8

Please sign in to comment.