You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Copy file name to clipboardExpand all lines: README.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,6 @@ Conversions for all of the basic types from the Web IDL specification are implem
40
40
-[`DOMString`](https://heycam.github.io/webidl/#es-DOMString), which can additionally be provided the boolean option `{ treatNullAsEmptyString }` as a second parameter
Additionally, for convenience, the following derived type definitions are implemented:
@@ -77,4 +76,4 @@ And getting to that payoff is the goal of _this_ project—but for JavaScript im
77
76
78
77
Seriously, why would you ever use this? You really shouldn't. Web IDL is … strange, and you shouldn't be emulating its semantics. If you're looking for a generic argument-processing library, you should find one with better rules than those from Web IDL. In general, your JavaScript should not be trying to become more like Web IDL; if anything, we should fix Web IDL to make it more like JavaScript.
79
78
80
-
The _only_ people who should use this are those trying to create faithful implementations (or polyfills) of web platform interfaces defined in Web IDL. Its main consumer is the [jsdom](https://github.com/tmpvar/jsdom) project.
79
+
The _only_ people who should use this are those trying to create faithful implementations (or polyfills) of web platform interfaces defined in Web IDL. Its main consumer is the [jsdom](https://github.com/jsdom/jsdom) project.
0 commit comments