mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
Add op_id throughout op API (#2734)
Removes the magic number hack to switch between flatbuffers and the minimal dispatcher. Adds machinery to pass the op_id through the shared_queue.
This commit is contained in:
parent
5350abbc7f
commit
e438ac2c74
22 changed files with 354 additions and 251 deletions
|
@ -29,8 +29,8 @@ impl Worker {
|
|||
{
|
||||
let mut i = isolate.lock().unwrap();
|
||||
let state_ = state.clone();
|
||||
i.set_dispatch(move |control_buf, zero_copy_buf| {
|
||||
state_.dispatch(control_buf, zero_copy_buf)
|
||||
i.set_dispatch(move |op_id, control_buf, zero_copy_buf| {
|
||||
state_.dispatch(op_id, control_buf, zero_copy_buf)
|
||||
});
|
||||
let state_ = state.clone();
|
||||
i.set_js_error_create(move |v8_exception| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue