beamjs/erlv8 — Issue #66: Can't get error details from exception
Author: lyxsus
Created: 2011-11-30 04:25:59+00:00
State: open

Following wiki instruction gives me empty list, when detailed exception info is expected:

Example:

1> {ok, VM} = erlv8_vm:start().
{ok,<0.548.0>}
2> erlv8_vm:run(VM,"f = function (x) { return x * 10 }; f(10)").
{ok,100}
3> {Resolution, Value} = erlv8_vm:run(VM,"f = function (x) { return x * 10 }; f(10").
{throw,{erlv8_object,<<>>,<0.548.0>}}
4> Value:proplist().
[]

Instead of:

…
4> Value:proplist ().
[{"message","Unexpected end of input"},
{"stack","SyntaxError: Unexpected end of input"},
{"type","unexpected_eos"},
{"arguments",[]},
{"name","SyntaxError"}]

Maybe, I should recompile v8? It's macos builded as rebar dep.