Create a global named global when running JSC tests

This commit is contained in:
Thomas Goyne 2017-09-21 12:54:46 -07:00
parent ada3d116af
commit 54bbc708e9

View File

@ -48,6 +48,8 @@
context[@"Promise"] = promiseModule[@"Promise"]; context[@"Promise"] = promiseModule[@"Promise"];
} }
context[@"global"] = [JSValue valueWithNewObjectInContext:context];
// Create Realm constructor in the JS context. // Create Realm constructor in the JS context.
RJSInitializeInContext(context.JSGlobalContextRef); RJSInitializeInContext(context.JSGlobalContextRef);