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:
@@ -176,7 +176,7 @@ class Constructor {
|
||||
}
|
||||
|
||||
base::StringPiece name_;
|
||||
v8::Persistent<v8::FunctionTemplate> constructor_;
|
||||
v8::UniquePersistent<v8::FunctionTemplate> constructor_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(Constructor);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user