Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
Merge branch 'rewrite-go-js' into reentrant-unit-test
Browse files Browse the repository at this point in the history
  • Loading branch information
rachel-bousfield authored Nov 2, 2023
2 parents 482a24a + 5acf6df commit c3ab7ad
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion arbitrator/wasm-libraries/go-js/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,12 @@ fn make_fs_object() -> JsValue {
}
// Don't borrow buf during the callback
drop(buf);
callback.call(env, JsValue::Undefined, Vec::new())?;

let args = vec![
JsValue::Null, // no error
JsValue::Number(length as f64), // amount written
];
callback.call(env, JsValue::Undefined, args)?;
Ok(JsValue::Undefined)
});
fs.into()
Expand Down

0 comments on commit c3ab7ad

Please sign in to comment.