Open pytong opened 8 years ago
Adding console.log to the javascript breaks the code.
function update(request) { console.log("testing"); return request; }
[error] GenServer #PID<0.407.0> terminating \ (Poison.SyntaxError) Unexpected token: t (poison) lib/poison/parser.ex:56: Poison.Parser.parse!/2 (poison) lib/poison.ex:83: Poison.decode!/2 lib/execjs.ex:69: Execjs.extract_result/1 lib/execjs.ex:40: Execjs.exec/1
What am I missing here?
@devinus Any plans to address this issue?
@pytong @korczis The console object should not be available at all in any environemtn. Is this the Node runner?
console
Adding console.log to the javascript breaks the code.
function update(request) { console.log("testing"); return request; }
[error] GenServer #PID<0.407.0> terminating \ (Poison.SyntaxError) Unexpected token: t (poison) lib/poison/parser.ex:56: Poison.Parser.parse!/2 (poison) lib/poison.ex:83: Poison.decode!/2 lib/execjs.ex:69: Execjs.extract_result/1 lib/execjs.ex:40: Execjs.exec/1
What am I missing here?