Skip to content

Commit 4126c72

Browse files
committed
fix(pmjs): pmjs -p should be printing from the JS side
1 parent 8726502 commit 4126c72

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

python/pythonmonkey/cli/pmjs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,8 @@ async def runEval():
350350
enterRepl = False
351351
elif o in ("-p", "--print"):
352352
async def runEvalPrint():
353-
print(pm.eval(a, evalOpts))
353+
ret = pm.eval(a, evalOpts)
354+
pm.eval("ret => console.log(ret)", evalOpts)(ret)
354355
await pm.wait()
355356
asyncio.run(runEvalPrint())
356357
enterRepl = False

0 commit comments

Comments
 (0)