summaryrefslogtreecommitdiff
path: root/Roadmap.md
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2018-10-07 23:48:06 +0200
committerBert Belder <bertbelder@gmail.com>2018-10-08 18:19:32 +0200
commite742af10aa67dc90a68fcb60b8e70733fd753e68 (patch)
treebc9d7360c5a8cb94e93f9dabf5749b94addc0c18 /Roadmap.md
parentd86e5d2605c68606c8073d1b563d3389ea93c112 (diff)
Abide by the rules when passing Isolate between c and rust
Ensure that at most one mutable Isolate reference exists at a time. `deno_execute()` and `deno_respond()` now borrow a reference to the rust-side isolate from the caller. When we need a reference to the isolate while one of these functions is on the stack, `deno_get_data()` can be used to borrow back that reference.
Diffstat (limited to 'Roadmap.md')
-rw-r--r--Roadmap.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/Roadmap.md b/Roadmap.md
index e310b9a50..ff0f70071 100644
--- a/Roadmap.md
+++ b/Roadmap.md
@@ -131,7 +131,7 @@ void deno_set_callback(Deno* deno, deno_sub_cb cb);
// Get error text with deno_last_exception().
// 0 = success, non-zero = failure.
// TODO(ry) Currently the return code has opposite semantics.
-int deno_execute(Deno* d, const char* js_filename, const char* js_source);
+int deno_execute(Deno* d, void* user_data, const char* js_filename, const char* js_source);
// This call doesn't go into JS. This is thread-safe.
// TODO(ry) Currently this is called deno_pub. It should be renamed.