diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-07-26 17:47:42 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-07-29 00:22:39 -0400 |
commit | 20a41aa9b5c3883390d368b74d7e9e1c46efd32a (patch) | |
tree | 874ad7e3a2fe600d75aca9edbf6891200262efd5 /src/binding.cc | |
parent | e7445507aac75b7e1471413f862c7f72ef0d02c4 (diff) |
Add from_c() to get a Deno object from ptr.
This is a utility function for CodeCache and other handlers.
Diffstat (limited to 'src/binding.cc')
-rw-r--r-- | src/binding.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/binding.cc b/src/binding.cc index 7b5da2d7f..ff2f8bd84 100644 --- a/src/binding.cc +++ b/src/binding.cc @@ -288,6 +288,8 @@ void deno_init() { v8::V8::Initialize(); } +void* deno_get_data(Deno* d) { return d->data; } + const char* deno_v8_version() { return v8::V8::GetVersion(); } // TODO(ry) Remove these when we call deno_reply_start from Rust. |