LibJS: Implement the RegExp.escape proposal

https://tc39.es/proposal-regex-escaping/
This commit is contained in:
Timothy Flynn 2024-12-04 17:12:42 -05:00 committed by Jelle Raaijmakers
commit db87f173fb
Notes: github-actions[bot] 2024-12-05 12:57:14 +00:00
3 changed files with 177 additions and 0 deletions

View file

@ -29,6 +29,7 @@ private:
virtual bool has_constructor() const override { return true; }
JS_DECLARE_NATIVE_FUNCTION(escape);
JS_DECLARE_NATIVE_FUNCTION(symbol_species_getter);
JS_DECLARE_NATIVE_FUNCTION(input_getter);
JS_DECLARE_NATIVE_FUNCTION(input_alias_getter);