Skip to content

Commit c627e30

Browse files
Revert "Update src/jsTypeFactory.cc"
This reverts commit 77f460b.
1 parent 77f460b commit c627e30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jsTypeFactory.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ JS::Value jsTypeFactory(JSContext *cx, PyObject *object) {
250250
returnType.setNull();
251251
}
252252
else if (PythonAwaitable_Check(object)) {
253-
returnType.setObjectOrNull((PromiseType(object)).toJsPromise(cx));
253+
returnType.setObjectOrNull((new PromiseType(object))->toJsPromise(cx));
254254
}
255255
else {
256256
JS::RootedValue v(cx);

0 commit comments

Comments
 (0)