Skip to content

Commit

Permalink
enable load() usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartolomeo Sorrentino authored and Bartolomeo Sorrentino committed May 19, 2019
1 parent 83bc9f2 commit b5bf205
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions samples/src/main/java/org/bsc/java2ts/JSRun.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public static void main(String[] args) throws Exception {
// @see https://github.com/graalvm/graaljs/blob/master/docs/user/ScriptEngine.md
bindings.put("polyglot.js.allowHostAccess", true);
bindings.put("polyglot.js.allowHostClassLookup", (Predicate<String>) s -> true);
bindings.put("polyglot.js.allowIO", true);

service.put( "$ARG", args );

Expand Down

0 comments on commit b5bf205

Please sign in to comment.