Added run script

This commit is contained in:
Jonatan Pålsson 2011-01-25 14:41:11 +01:00
parent cc36d46002
commit ba3d3ced6d
9 changed files with 2 additions and 5 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -91,11 +91,7 @@ code_change(_OldVsn, State, _Extra) ->
%%-----------------------------------------------------
do_JSCall(Socket, Data) ->
io:format("Data: ~p", [Data]),
Port = js_runner:boot(),
Ret = js_runner:executeJS(Port, Data),
gen_tcp:send(Socket, io_lib:fwrite("~p~n", [Ret])).
args_to_terms(RawArgs) ->
{ok, Toks, _Line} = erl_scan:string("[" ++ RawArgs ++ "]. ", 1),
{ok, Args} = erl_parse:parse_term(Toks),
Args.

Binary file not shown.