Skip to content
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

Native global #208

Closed
wants to merge 3 commits into from
Closed

Native global #208

wants to merge 3 commits into from

Conversation

krichprollsch
Copy link
Member

@krichprollsch krichprollsch commented Feb 24, 2024

Bind global object with native

try js_env.loadGlobalT(Window);

try js_env.start(alloc);
try js_env.bindGlobal(window);
> foo();
ReferenceError: foo is not defined
> window.foo = () => true;
<- () => true
> foo();
<- true

Fix #171
Fix #203

@krichprollsch krichprollsch marked this pull request as draft February 26, 2024 11:25
@krichprollsch krichprollsch removed the request for review from francisbouvier February 26, 2024 11:26
@krichprollsch krichprollsch mentioned this pull request Feb 26, 2024
@krichprollsch
Copy link
Member Author

replaced by #209

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Init js env context with a native global object Env.addObject should return the js object attached
1 participant