Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove Error and make BufferSource checks realm-independent
The Error type has been removed from the Web IDL specification, so we can remove it here. For the BufferSource types, we improve their checks to be realm-independent. Given jsdom's move to separate the Node.js globals from the JSDOM globals, instanceof being incorrect is now causing actual problems. Helps with jsdom/jsdom#2743. Makes #12 slightly better, but there are still forgeable checks for the typed arrays, based on V.constructor.name.
- Loading branch information
Showing
4 changed files
with
71 additions
and
98 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
This file was deleted.
Oops, something went wrong.