-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes
ArrayBuffer
and TypedArray.prototype.@@iterator
detection i…
…n IE11
- Loading branch information
Showing
3 changed files
with
5 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
// use "Int8Array" as a proxy for support of "TypedArray" subclasses | ||
// confirm that the prototype of "Int8Array" is NOT the "Object" prototype, which is a bug in IE11 and maybe other old browsers | ||
'ArrayBuffer' in self && 'DataView' in self && 'Int8Array' in self | ||
// IE11 has an incomplete implementation that's missing `slice` and maybe others | ||
&& 'slice' in self.Int8Array.prototype | ||
// TODO: add back this check once we remove support for ie10 and below | ||
// && Object.getPrototypeOf(self.Int8Array) !== Object.getPrototypeOf(Object) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// use "Int8Array" as a proxy for support of "TypedArray" subclasses | ||
'Symbol' in self && 'iterator' in self.Symbol && 'Int8Array' in self && self.Symbol.iterator in self.Int8Array.prototype | ||
'Symbol' in self && 'iterator' in self.Symbol && 'Int8Array' in self && self.Symbol.iterator in self.Int8Array.prototype && self.Int8Array.prototype[self.Symbol.iterator] !== undefined |
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