Added unicode support when running JS

This commit is contained in:
Jonatan Pålsson 2011-01-25 14:58:40 +01:00
parent ce02587c95
commit ee97a0b044
3 changed files with 2 additions and 2 deletions

View file

@ -15,4 +15,4 @@ while true
line = s.gets # Read lines from the socket
puts "Got Echo: " + line.chop # And print with platform line terminator
end
s.close # Close the socket when done
s.close # Close the socket when done

View file

@ -8,4 +8,4 @@ boot() ->
executeJS(Port, Data) ->
ok = js:define(Port, <<"function helloworld(name){return 'Hello, ' + name}">>),
js:call(Port, <<"helloworld">>, [Data]).
js:call(Port, <<"helloworld">>, [list_to_binary(Data)]).

Binary file not shown.