File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed
c-dependencies/js-compute-runtime Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -206,16 +206,6 @@ JSObject *PromiseRejectedWithPendingError(JSContext *cx) {
206
206
return promise;
207
207
}
208
208
209
- inline bool ReturnPromiseRejectedWithPendingError (JSContext *cx, const JS::CallArgs &args) {
210
- JSObject *promise = PromiseRejectedWithPendingError (cx);
211
- if (!promise) {
212
- return false ;
213
- }
214
-
215
- args.rval ().setObject (*promise);
216
- return true ;
217
- }
218
-
219
209
#define HANDLE_READ_CHUNK_SIZE 8192
220
210
221
211
template <auto op, class HandleType >
Original file line number Diff line number Diff line change @@ -33,6 +33,18 @@ const JSErrorFormatString js_ErrorFormatString[JSErrNum_Limit] = {
33
33
};
34
34
35
35
const JSErrorFormatString *GetErrorMessage (void *userRef, unsigned errorNumber);
36
+
37
+ JSObject *PromiseRejectedWithPendingError (JSContext *cx);
38
+ inline bool ReturnPromiseRejectedWithPendingError (JSContext *cx, const JS::CallArgs &args) {
39
+ JSObject *promise = PromiseRejectedWithPendingError (cx);
40
+ if (!promise) {
41
+ return false ;
42
+ }
43
+
44
+ args.rval ().setObject (*promise);
45
+ return true ;
46
+ }
47
+
36
48
bool hasWizeningFinished ();
37
49
bool isWizening ();
38
50
void markWizeningAsFinished ();
You can’t perform that action at this time.
0 commit comments