diff options
author | Bert Belder <bertbelder@gmail.com> | 2019-07-23 21:12:49 +0200 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2019-07-24 01:57:32 +0200 |
commit | 1406961d2b32b6ff9d842e13d2add124b7e3119d (patch) | |
tree | 227956a5c1d83c6eed89f89d8158518484906a0e /core/libdeno/internal.h | |
parent | e49d1e16ca2fca45e959c1add9b5a1d6866dbb90 (diff) |
Add error handling for dynamic imports to libdeno (#2678)
Diffstat (limited to 'core/libdeno/internal.h')
-rw-r--r-- | core/libdeno/internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/libdeno/internal.h b/core/libdeno/internal.h index 7702c3a16..50e85017e 100644 --- a/core/libdeno/internal.h +++ b/core/libdeno/internal.h @@ -51,6 +51,7 @@ class DenoIsolate { } ~DenoIsolate() { + last_exception_handle_.Reset(); shared_ab_.Reset(); if (locker_) { delete locker_; @@ -111,6 +112,7 @@ class DenoIsolate { v8::Persistent<v8::Context> context_; std::map<int, v8::Persistent<v8::Value>> pending_promise_map_; std::string last_exception_; + v8::Persistent<v8::Value> last_exception_handle_; v8::Persistent<v8::Function> recv_; v8::StartupData snapshot_; v8::Persistent<v8::ArrayBuffer> global_import_buf_; |