mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibJS: Implement Object.freeze() and Object.seal()
This commit is contained in:
parent
1c3eef5317
commit
9af07c7803
Notes:
sideshowbarker
2024-07-18 20:40:07 +09:00
Author: https://github.com/linusg
Commit: 9af07c7803
Pull-request: https://github.com/SerenityOS/serenity/pull/6163
Reviewed-by: https://github.com/awesomekling
8 changed files with 202 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2020-2021, Linus Groh <mail@linusgroh.de>
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -52,6 +53,8 @@ private:
|
|||
JS_DECLARE_NATIVE_FUNCTION(set_prototype_of);
|
||||
JS_DECLARE_NATIVE_FUNCTION(is_extensible);
|
||||
JS_DECLARE_NATIVE_FUNCTION(prevent_extensions);
|
||||
JS_DECLARE_NATIVE_FUNCTION(seal);
|
||||
JS_DECLARE_NATIVE_FUNCTION(freeze);
|
||||
JS_DECLARE_NATIVE_FUNCTION(keys);
|
||||
JS_DECLARE_NATIVE_FUNCTION(values);
|
||||
JS_DECLARE_NATIVE_FUNCTION(entries);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue