Initial directory struct + OTP stuffs
This commit is contained in:
parent
a44a538ac6
commit
c88dcf7829
13 changed files with 160 additions and 0 deletions
7
js_runner.erl
Normal file
7
js_runner.erl
Normal file
|
@ -0,0 +1,7 @@
|
|||
-module(js_runner).
|
||||
-export([run/0]).
|
||||
boot() ->
|
||||
erlang_js:start(),
|
||||
{ok, Port} = js_driver:new(),
|
||||
ok = js:define(Port, <<"function helloworld(name){return 'Hello, ' + name}">>),
|
||||
js:call(Port, <<"helloworld">>, [<<"Generic Game Server">>]).
|
Reference in a new issue