diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-07-06 02:15:08 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-07-06 14:20:30 +0100 |
commit | a6b8291a9b3f72c6c70141dafb85d380a68ebdd0 (patch) | |
tree | 908ed08ffe0d308d926fe0c605983e25148335cf /Userland/Libraries/LibJS/Bytecode | |
parent | e915155ca452bb9c731051030b0cbb6883d4809d (diff) | |
download | serenity-a6b8291a9b3f72c6c70141dafb85d380a68ebdd0.zip |
LibJS: Add define_direct_property and remove the define_property helper
This removes all usages of the non-standard define_property helper
method and replaces all it's usages with the specification required
alternative or with define_direct_property where appropriate.
Diffstat (limited to 'Userland/Libraries/LibJS/Bytecode')
-rw-r--r-- | Userland/Libraries/LibJS/Bytecode/Op.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Bytecode/Op.cpp b/Userland/Libraries/LibJS/Bytecode/Op.cpp index bfefe55b17..27a072dcec 100644 --- a/Userland/Libraries/LibJS/Bytecode/Op.cpp +++ b/Userland/Libraries/LibJS/Bytecode/Op.cpp @@ -203,7 +203,7 @@ void CopyObjectExcludingProperties::execute_impl(Bytecode::Interpreter& interpre auto property_value = from_object->get(property_name); if (interpreter.vm().exception()) return; - to_object->define_property(property_name, property_value); + to_object->define_direct_property(property_name, property_value, JS::default_attributes); } } |