-
-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Avoid setting the same property on an ObjectTemplate twice
Due to Kotlin extension methods with the same names as Java methods, we may be setting the same property twice on a class's prototype template. The V8 API does not allow this and will fail a dcheck. Since there is no API to check if a property has already been added to v8::ObjectTemplate, wrap the prototype template in a small class PrototypeTemplateFiller which keeps track of what's already been added and avoids adding it again.
- Loading branch information
1 parent
9dfae65
commit 9e610c8
Showing
3 changed files
with
154 additions
and
53 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
Oops, something went wrong.