-
Notifications
You must be signed in to change notification settings - Fork 499
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow SetWeak() for non-object persistent handles. (#824)
The definition of the SetWeak() template method constrained the type to types with a GetAlignedPointerFromInternalField() method. In practice that meant it only worked with T=v8::Object. Lift that restriction so that e.g. T=v8::External now also works. Note that `SetWeak(WeakCallbackType::kInternalFields)` for types without the aforementioned method will result in a run-time assertion.
- Loading branch information
1 parent
801f129
commit e6ef6a4
Showing
3 changed files
with
50 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters