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

@ -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.