mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Introduce Object, FunctionTemplate
* Add cctest for Object, FunctionTemplates * Fix one of EncodedValue <-> EncodedSmallValue conversion bug Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
d3e5ec69ce
commit
ca9b832a77
26 changed files with 1686 additions and 192 deletions
|
|
@ -88,6 +88,12 @@ NativeFunctionObject::NativeFunctionObject(ExecutionState& state, NativeFunction
|
|||
ASSERT(codeBlock()->hasCallNativeFunctionCode());
|
||||
}
|
||||
|
||||
NativeFunctionObject::NativeFunctionObject(CodeBlock* codeBlock, ObjectStructure* structure, ObjectPropertyValueVector&& values)
|
||||
: FunctionObject(structure, std::move(values), codeBlock->context()->globalObject()->functionPrototype())
|
||||
{
|
||||
m_codeBlock = codeBlock;
|
||||
}
|
||||
|
||||
bool NativeFunctionObject::isConstructor() const
|
||||
{
|
||||
return m_codeBlock->isNativeFunctionConstructor();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue