-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Realm running module code to cover import #5
Comments
I don't think so, since inside that module, you can use |
Currently the proposal does require that the "bootstrap" is either module code, or using
|
Actually maybe there could be something like Edit: for completeness, here is an example: // my-script.js
globalThis.timesTwo = (x) => x * 2;
// main.js
const r = new Realm();
await r.executeScript('./my-script.js');
const redFunction = r.getGlobalPropertyValue('timesTwo');
redFunction(21); // yields 42 |
does having
import
implies Realm code is module code?The text was updated successfully, but these errors were encountered: