-module(beamjs_mod_sys).
-export([exports/0]).
-include_lib("erlv8/include/erlv8.hrl").

exports() ->
	[{"print", fun print/3}].

print(_Script, #erlv8_fun_invocation{} = _Invocation, Expr) ->
	io:format("~p",[Expr]),
	undefined.


-module(beamjs_mod_sys).
-export([exports/0]).
-include_lib("erlv8/include/erlv8.hrl").

exports() ->
	[{"print", fun print/3}].

print(Script, #erlv8_fun_invocation{} = _Invocation, Expr) ->
	io:format("~s",[erlv8_script:to_detail_string(Script,Expr)]),
	undefined.


Make sys.print() use v8's detail string for the object it is printing
Make sys.print() use v8's detail string for the object it is printing
