Skip to content

Conversation

@philippedistributive
Copy link
Collaborator

@philippedistributive philippedistributive commented Jun 5, 2024

Console.trace's own context should not be printed in the output but it is now:

With
import pythonmonkey as pm
pm.eval('function foo(){ function bar() { console.trace() } bar(); } foo();')

get

Trace
_home_philippe_Sources_PythonMonkey_python_pythonmonkey_builtin_modules_console_js/Console/this.trace@/home/philippe/Sources/PythonMonkey/python/pythonmonkey/builtin_modules/console.js:104:22
bar@evaluate:1:42
foo@evaluate:1:52
@evaluate:1:61

Now fixed to

import pythonmonkey as pm
pm.eval('function foo(){ function bar() { console.trace() } bar(); } foo();')

gets

Trace
bar@evaluate:1:42
foo@evaluate:1:52
@evaluate:1:61

Copy link
Collaborator

@zollqir zollqir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@philippedistributive philippedistributive merged commit 89afe29 into main Jun 5, 2024
@philippedistributive philippedistributive deleted the philippe/trace-fix branch June 5, 2024 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants