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

@ -52,7 +52,7 @@ public:
// if thisArgument is null or undefined, then
// Let thisValue be calleeRealm.[[globalThis]]
if (thisArgument.isUndefinedOrNull()) {
return calleeState.context()->globalObject();
return calleeState.context()->globalObjectProxy();
} else {
// Else
// Let thisValue be ToObject(thisArgument).