LibJS: Implement default values for function parameters in BC

This commit is contained in:
Ali Mohammad Pur 2022-03-14 23:32:13 +03:30 committed by Andreas Kling
parent 0b8d2fb62f
commit d75cf27e02
Notes: sideshowbarker 2024-07-17 17:26:27 +09:00
2 changed files with 40 additions and 16 deletions

View file

@ -109,6 +109,7 @@ private:
FlyString m_name;
OwnPtr<Bytecode::Executable> m_bytecode_executable;
Vector<OwnPtr<Bytecode::Executable>> m_default_parameter_bytecode_executables;
i32 m_function_length { 0 };
// Internal Slots of ECMAScript Function Objects, https://tc39.es/ecma262/#table-internal-slots-of-ecmascript-function-objects