mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:57:43 +00:00
LibJS: Convert internal_prevent_extensions() to ThrowCompletionOr
This commit is contained in:
parent
9b4362f10a
commit
73bae7d779
12 changed files with 22 additions and 30 deletions
|
@ -206,7 +206,7 @@ void GlobalObject::initialize_global_object()
|
|||
});
|
||||
m_throw_type_error_function->define_direct_property_without_transition(vm.names.length, Value(0), 0);
|
||||
m_throw_type_error_function->define_direct_property_without_transition(vm.names.name, js_string(vm, ""), 0);
|
||||
m_throw_type_error_function->internal_prevent_extensions();
|
||||
(void)m_throw_type_error_function->internal_prevent_extensions();
|
||||
|
||||
// 10.2.4 AddRestrictedFunctionProperties ( F, realm ), https://tc39.es/ecma262/#sec-addrestrictedfunctionproperties
|
||||
m_function_prototype->define_direct_accessor_without_transition(vm.names.caller, m_throw_type_error_function, m_throw_type_error_function, Attribute::Configurable);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue