more rigorous js impl
This commit is contained in:
parent
38cf45ed81
commit
0469a72530
1 changed files with 4 additions and 4 deletions
|
|
@ -343,7 +343,7 @@ def get_python_traceback(output: str) -> str:
|
|||
return None
|
||||
|
||||
def get_javascript_traceback(output: str) -> str:
|
||||
if "at " in output:
|
||||
return output
|
||||
else:
|
||||
return None
|
||||
lines = output.splitlines("\n")
|
||||
first_line = lines[0].split(": ")
|
||||
if len(lines) > 0 and len(first_line[0]) > 0 and "at" in lines[1].lstrip():
|
||||
return output
|
||||
Loading…
Add table
Reference in a new issue