Implement GlobalObjectProxyObject for support external project

Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
Seonghyun Kim 2020-04-16 16:51:39 +09:00 committed by Hyukwoo Park
commit 5fe34d5b04
16 changed files with 340 additions and 14 deletions

View file

@ -546,7 +546,7 @@ Value Script::execute(ExecutionState& state, bool isExecuteOnEvalFunction, bool
}
}
Value thisValue(context()->globalObject());
Value thisValue(context()->globalObjectProxy());
size_t literalStorageSize = byteCodeBlock->m_numeralLiteralData.size();
Value* registerFile = (Value*)ALLOCA((byteCodeBlock->m_requiredRegisterFileSizeInValueSize + 1 + literalStorageSize + m_topCodeBlock->lexicalBlockStackAllocatedIdentifierMaximumDepth()) * sizeof(Value), Value, state);