Skip to content

Commit

Permalink
Also skip fake fakeDataView test if no Symbol.toStringTag support
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechilds committed Apr 29, 2019
1 parent 67d1e18 commit 30edc4e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/node/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,12 @@ if (SymbolToStringTagSupported) {
}
return Object.create(Buffer.prototype);
};
var fakeDataView = function fakeDataView() { return Object.create(DataView.prototype); };
var fakeDataView = function fakeDataView() {
if (!SymbolToStringTagSupported) {
throw new Error();
}
return Object.create(DataView.prototype);
};
var fakeUint8Array = function fakeUint8Array() { return Object.create(Uint8Array.prototype); };
var fakeUint8ClampedArray = function fakeUint8ClampedArray() { return Object.create(Uint8ClampedArray.prototype); };
var fakeUint16Array = function fakeUint16Array() { return Object.create(Uint16Array.prototype); };
Expand Down

0 comments on commit 30edc4e

Please sign in to comment.