mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 21:27:34 +00:00
LibJS: Add the TypedArray.prototype.toString property
This is initialized to be the same function object as the initial value of the Array.prototype.toString generic function.
This commit is contained in:
parent
57db27bcc4
commit
d5c836dd64
1 changed files with 3 additions and 0 deletions
|
@ -35,6 +35,9 @@ void TypedArrayPrototype::initialize(GlobalObject& object)
|
||||||
define_native_function(vm.names.join, join, 1, attr);
|
define_native_function(vm.names.join, join, 1, attr);
|
||||||
|
|
||||||
define_native_accessor(vm.well_known_symbol_to_string_tag(), to_string_tag_getter, nullptr, Attribute::Configurable);
|
define_native_accessor(vm.well_known_symbol_to_string_tag(), to_string_tag_getter, nullptr, Attribute::Configurable);
|
||||||
|
|
||||||
|
// 23.2.3.29 %TypedArray%.prototype.toString ( ), https://tc39.es/ecma262/#sec-%typedarray%.prototype.tostring
|
||||||
|
define_property(vm.names.toString, global_object().array_prototype()->get_without_side_effects(vm.names.toString), attr);
|
||||||
}
|
}
|
||||||
|
|
||||||
TypedArrayPrototype::~TypedArrayPrototype()
|
TypedArrayPrototype::~TypedArrayPrototype()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue