mirror of
https://github.com/electron/electron.git
synced 2026-02-19 03:14:51 -05:00
Don't reset handle before Wrappable is destroyed
It is possible that the user wants to use the V8 object in the destructor. Fixes atom/atom-shell#1112.
This commit is contained in:
@@ -60,7 +60,7 @@ class CallbackHolderBase {
|
||||
private:
|
||||
static MATE_WEAK_CALLBACK(WeakCallback, v8::External, CallbackHolderBase);
|
||||
|
||||
v8::Persistent<v8::External> v8_ref_;
|
||||
v8::UniquePersistent<v8::External> v8_ref_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(CallbackHolderBase);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user