summaryrefslogtreecommitdiff
path: root/libdeno/internal.h
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2019-02-08 20:32:17 -0800
committerGitHub <noreply@github.com>2019-02-08 20:32:17 -0800
commitbbe2004f5d2b434fe5942fc3c8954a297b317fd0 (patch)
tree4beadfe0d7c087977d2c546f55c992d11efd8c4e /libdeno/internal.h
parent7380b19459db3644271f1623428245e29e716f0a (diff)
Shared buffer fixes (#1644)
* makes `libdeno.shared` a `SharedArrayBuffer` instead of a regular `ArrayBuffer`. * fixes `libdeno.shared` becoming undefined after accessing it once.
Diffstat (limited to 'libdeno/internal.h')
-rw-r--r--libdeno/internal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libdeno/internal.h b/libdeno/internal.h
index 14a9cd43f..0cd50162c 100644
--- a/libdeno/internal.h
+++ b/libdeno/internal.h
@@ -46,6 +46,7 @@ class DenoIsolate {
}
~DenoIsolate() {
+ shared_ab_.Reset();
if (snapshot_creator_) {
delete snapshot_creator_;
} else {
@@ -98,7 +99,7 @@ class DenoIsolate {
v8::Persistent<v8::Function> recv_;
v8::StartupData snapshot_;
v8::Persistent<v8::ArrayBuffer> global_import_buf_;
- v8::Persistent<v8::ArrayBuffer> shared_ab_;
+ v8::Persistent<v8::SharedArrayBuffer> shared_ab_;
};
class UserDataScope {