Clear internal field when Wrapper is destroyed
This commit is contained in:
parent
26520c5cf4
commit
e719eab878
1 changed files with 2 additions and 0 deletions
|
@ -14,6 +14,8 @@ Wrappable::Wrappable() : isolate_(NULL) {
|
||||||
}
|
}
|
||||||
|
|
||||||
Wrappable::~Wrappable() {
|
Wrappable::~Wrappable() {
|
||||||
|
if (!wrapper_.IsEmpty())
|
||||||
|
GetWrapper(isolate())->SetAlignedPointerInInternalField(0, nullptr);
|
||||||
wrapper_.Reset();
|
wrapper_.Reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue