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

feat(core): Reland support for async ops in realms #17204

Merged
merged 17 commits into from
Jan 14, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use the PromiseId type alias
  • Loading branch information
andreubotella committed Dec 28, 2022
commit bac8ea8aea55e5350121d80abd5da16298bddedd
2 changes: 1 addition & 1 deletion core/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2154,7 +2154,7 @@ impl JsRuntime {

// `responses_per_realm[idx]` is a vector containing the promise ID and
// response for all promises in realm `self.state.known_realms[idx]`.
let mut responses_per_realm: Vec<Vec<(i32, OpResult)>> = {
let mut responses_per_realm: Vec<Vec<(PromiseId, OpResult)>> = {
let len = self.state.borrow().known_realms.len();
(0..len).map(|_| vec![]).collect()
};
Expand Down