Skip to content

Commit e8c439a

Browse files
cleanup
1 parent da5f621 commit e8c439a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/setSpiderMonkeyException.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ PyObject *getExceptionString(JSContext *cx, const JS::ExceptionStack &exceptionS
6060
JS::RootedObject stackObj(cx, exceptionStack.stack());
6161
if (stackObj.get()) {
6262
JS::RootedString stackStr(cx);
63-
BuildStackString(cx, nullptr, stackObj, &stackStr, /* indent */ 2, js::StackFormat::SpiderMonkey);
64-
outStrStream << "Stack Trace: \n" << StrType(cx, stackStr).getValue();
63+
BuildStackString(cx, nullptr, stackObj, &stackStr, 2, js::StackFormat::SpiderMonkey);
64+
outStrStream << "Stack Trace:\n" << StrType(cx, stackStr).getValue();
6565
}
6666
}
6767

@@ -96,7 +96,6 @@ void setSpiderMonkeyException(JSContext *cx) {
9696
}
9797
}
9898

99-
10099
JS_ClearPendingException(cx);
101100

102101
// `PyErr_SetString` uses `PyErr_SetObject` with `PyUnicode_FromString` under the hood

0 commit comments

Comments
 (0)