mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:47:35 +00:00
LibJS: Make AbstractOperations::canonical_num... take a PropertyName
This allows us to hide the fact that it could be a number and means we no longer need to check for this optimization in string and typedarray
This commit is contained in:
parent
9b7e48c6bd
commit
c52d515028
4 changed files with 31 additions and 64 deletions
|
@ -29,7 +29,7 @@ bool validate_and_apply_property_descriptor(Object*, PropertyName const&, bool e
|
|||
Object* get_prototype_from_constructor(GlobalObject&, FunctionObject const& constructor, Object* (GlobalObject::*intrinsic_default_prototype)());
|
||||
Object* create_unmapped_arguments_object(GlobalObject&, Vector<Value> const& arguments);
|
||||
Object* create_mapped_arguments_object(GlobalObject&, FunctionObject&, Vector<FunctionNode::Parameter> const&, Vector<Value> const& arguments, Environment&);
|
||||
Value canonical_numeric_index_string(GlobalObject&, Value);
|
||||
Value canonical_numeric_index_string(GlobalObject&, PropertyName const&);
|
||||
|
||||
enum class CallerMode {
|
||||
Strict,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue