1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:37:47 +00:00

LibJS: Convert PromiseConstructor functions to ThrowCompletionOr

This commit is contained in:
Idan Horowitz 2021-10-23 03:44:59 +03:00 committed by Andreas Kling
parent 81bdb20c61
commit 5af8f72d54
2 changed files with 34 additions and 34 deletions

View file

@ -24,14 +24,14 @@ public:
private:
virtual bool has_constructor() const override { return true; }
JS_DECLARE_OLD_NATIVE_FUNCTION(all);
JS_DECLARE_OLD_NATIVE_FUNCTION(all_settled);
JS_DECLARE_OLD_NATIVE_FUNCTION(any);
JS_DECLARE_OLD_NATIVE_FUNCTION(race);
JS_DECLARE_OLD_NATIVE_FUNCTION(reject);
JS_DECLARE_OLD_NATIVE_FUNCTION(resolve);
JS_DECLARE_NATIVE_FUNCTION(all);
JS_DECLARE_NATIVE_FUNCTION(all_settled);
JS_DECLARE_NATIVE_FUNCTION(any);
JS_DECLARE_NATIVE_FUNCTION(race);
JS_DECLARE_NATIVE_FUNCTION(reject);
JS_DECLARE_NATIVE_FUNCTION(resolve);
JS_DECLARE_OLD_NATIVE_FUNCTION(symbol_species_getter);
JS_DECLARE_NATIVE_FUNCTION(symbol_species_getter);
};
}