execjs icon indicating copy to clipboard operation
execjs copied to clipboard

Console.log doesn't work

Open pytong opened this issue 9 years ago • 2 comments
trafficstars

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?

pytong avatar Jun 24 '16 19:06 pytong

@devinus Any plans to address this issue?

korczis avatar Oct 09 '16 18:10 korczis

@pytong @korczis The console object should not be available at all in any environemtn. Is this the Node runner?

devinus avatar Oct 10 '16 07:10 devinus