mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Fix some bugs and add newGlobal builtinFunction to run spiderMonkeyTC (#443)
* Use a byteLength when creating new TypedArray from another TypedArray. * Keep the isLexicallyDeclaredBindingInitialization value when generating storeBytecode on ArrayPatternNode * Pass more SpiderMonkeyTCs Signed-off-by: Boram Bae <boram21.bae@samsung.com>
This commit is contained in:
parent
e820e0b969
commit
a12e36834c
4 changed files with 9 additions and 31 deletions
|
|
@ -313,6 +313,12 @@ PersistentRefHolder<ContextRef> createEscargotContext(VMInstanceRef* instance)
|
|||
FunctionObjectRef* buildFunctionObjectRef = FunctionObjectRef::create(state, nativeFunctionInfo);
|
||||
context->globalObject()->defineDataProperty(state, StringRef::createFromASCII("createNewGlobalObject"), buildFunctionObjectRef, true, true, true);
|
||||
}
|
||||
|
||||
{
|
||||
FunctionObjectRef::NativeFunctionInfo nativeFunctionInfo(AtomicStringRef::create(context, "newGlobal"), builtinDrainCreateNewGlobalObject, 0, true, false);
|
||||
FunctionObjectRef* buildFunctionObjectRef = FunctionObjectRef::create(state, nativeFunctionInfo);
|
||||
context->globalObject()->defineDataProperty(state, StringRef::createFromASCII("newGlobal"), buildFunctionObjectRef, true, true, true);
|
||||
}
|
||||
#endif
|
||||
|
||||
return ValueRef::createUndefined();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue