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

js/modules: Remove common utils dependency #2376

Merged
merged 1 commit into from
Feb 7, 2022
Merged

Conversation

codebien
Copy link
Contributor

@codebien codebien commented Feb 4, 2022

Something was missed from the module migration to the new modules.Module API, where the Runtime and the State are now directly accessible without getting them from the context.

This is required for #2344

@codebien codebien added this to the v0.37.0 milestone Feb 4, 2022
@codebien codebien self-assigned this Feb 4, 2022
mstoykov
mstoykov previously approved these changes Feb 4, 2022
@mstoykov
Copy link
Contributor

mstoykov commented Feb 4, 2022

Can you also cleanup the tests as they still use WithRuntime

na--
na-- previously approved these changes Feb 4, 2022
@codebien codebien dismissed stale reviews from na-- and mstoykov via 0e1a7ac February 4, 2022 18:17
@codebien codebien changed the title js/ws: Remove WithRuntime dependency js/modules: Remove common utils dependency Feb 4, 2022
@codebien
Copy link
Contributor Author

codebien commented Feb 4, 2022

I extended the changes to all the tests in js/k6/modules

@codebien codebien marked this pull request as draft February 4, 2022 18:27
Something was missed from the module migration to the new `modules.Module` API,
where the goja.Runtime and lib.State are now directly accessible without getting them from the context.
@codebien codebien marked this pull request as ready for review February 4, 2022 18:49
time.Sleep(1 * time.Second)
runtime.Gosched()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder why these were here? 😕 Seems they were here from almost the start (274eef8), but they don't seem necessary, so 👍 for removing them

Copy link
Member

@na-- na-- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@codebien codebien merged commit e41eec5 into master Feb 7, 2022
@codebien codebien deleted the ws-remove-withruntime branch February 7, 2022 13:21
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.

4 participants