mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-23 21:10:01 +00:00
Create a global named global
when running JSC tests
This commit is contained in:
parent
ada3d116af
commit
54bbc708e9
@ -48,6 +48,8 @@
|
||||
context[@"Promise"] = promiseModule[@"Promise"];
|
||||
}
|
||||
|
||||
context[@"global"] = [JSValue valueWithNewObjectInContext:context];
|
||||
|
||||
// Create Realm constructor in the JS context.
|
||||
RJSInitializeInContext(context.JSGlobalContextRef);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user