Skip to content

Commit 31f65cf

Browse files
gahaasvictorgomes
authored andcommitted
Unregister isolate after Isolate::Dispose (#208)
During Isolate::Dispose, CppHeap sweeping gets started, which tries to load a ForegroundTaskRunner. Loading the ForegroundTaskRunner is, however, not possible anymore after NodePlatform::UnregisterIsolate.
1 parent e3b1c76 commit 31f65cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/heap_utils.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class JSGraph : public EmbedderGraph {
8989
}
9090

9191
Node* V8Node(const Local<v8::Value>& value) override {
92-
return V8Node(value.As<v8::Data>());
92+
return V8Node(Local<v8::Data>(value));
9393
}
9494

9595
Node* AddNode(std::unique_ptr<Node> node) override {

0 commit comments

Comments
 (0)