1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:07:35 +00:00

LibJS: Implement Object.isFrozen() and Object.isSealed()

This commit is contained in:
Linus Groh 2021-04-06 22:45:12 +02:00 committed by Andreas Kling
parent 9af07c7803
commit f3264b0dbd
7 changed files with 105 additions and 0 deletions

View file

@ -52,6 +52,8 @@ private:
JS_DECLARE_NATIVE_FUNCTION(get_prototype_of);
JS_DECLARE_NATIVE_FUNCTION(set_prototype_of);
JS_DECLARE_NATIVE_FUNCTION(is_extensible);
JS_DECLARE_NATIVE_FUNCTION(is_frozen);
JS_DECLARE_NATIVE_FUNCTION(is_sealed);
JS_DECLARE_NATIVE_FUNCTION(prevent_extensions);
JS_DECLARE_NATIVE_FUNCTION(seal);
JS_DECLARE_NATIVE_FUNCTION(freeze);