mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:57:44 +00:00
LibJS: Add and use the CreateNonEnumerableDataPropertyOrThrow AO
This commit is contained in:
parent
6da7f43580
commit
6787e86a3a
5 changed files with 67 additions and 59 deletions
|
@ -41,7 +41,7 @@ void Error::install_error_cause(Value options)
|
|||
auto cause = options_object.get(vm.names.cause);
|
||||
if (vm.exception())
|
||||
return;
|
||||
define_property(vm.names.cause, cause, Attribute::Writable | Attribute::Configurable);
|
||||
create_non_enumerable_data_property_or_throw(vm.names.cause, cause);
|
||||
}
|
||||
|
||||
#define __JS_ENUMERATE(ClassName, snake_name, PrototypeName, ConstructorName, ArrayType) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue