frida / frida-tools

Frida CLI tools
Other
338 stars 95 forks source link

Fix Stack Trace Trim #137

Closed oriori1703 closed 1 year ago

oriori1703 commented 1 year ago

Fix an duplicate lines in multiline error messages.

for example:

throw Error("test1\ntest2\ntest3")

The code above would result in:

Error: test1
test2
test3
test2
test3
    at <eval> (<input>:1)
    at eval (native)

I also removed the last line in the stack trace, so the now the same code would result in:

Error: test1
test2
test3
    at <eval> (<input>:1)
yotamN commented 1 year ago

LGTM