File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed
TypedArray/prototype/@@iterator Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
// use "Int8Array" as a proxy for support of "TypedArray" subclasses
2
2
// confirm that the prototype of "Int8Array" is NOT the "Object" prototype, which is a bug in IE11 and maybe other old browsers
3
3
'ArrayBuffer' in self && 'DataView' in self && 'Int8Array' in self
4
+ // IE11 has an incomplete implementation that's missing `slice` and maybe others
5
+ && 'slice' in self . Int8Array . prototype
4
6
// TODO: add back this check once we remove support for ie10 and below
5
7
// && Object.getPrototypeOf(self.Int8Array) !== Object.getPrototypeOf(Object)
Original file line number Diff line number Diff line change 1
1
// use "Int8Array" as a proxy for support of "TypedArray" subclasses
2
- 'Symbol' in self && 'iterator' in self . Symbol && 'Int8Array' in self && self . Symbol . iterator in self . Int8Array . prototype
2
+ 'Symbol' in self && 'iterator' in self . Symbol && 'Int8Array' in self && self . Symbol . iterator in self . Int8Array . prototype && self . Int8Array . prototype [ self . Symbol . iterator ] !== undefined
Original file line number Diff line number Diff line change 4
4
5
5
it ( 'is an alias to %TypedArray%.prototype.values' , function ( ) {
6
6
if ( '__proto__' in Int8Array . prototype && self . Int8Array . prototype . __proto__ !== Object . prototype ) {
7
+ proclaim . isDefined ( Int8Array . prototype . __proto__ [ Symbol . iterator ] ) ;
7
8
proclaim . deepEqual ( Int8Array . prototype . __proto__ [ Symbol . iterator ] , Int8Array . prototype . __proto__ . values ) ;
8
9
} else {
10
+ proclaim . isDefined ( Int8Array . prototype [ Symbol . iterator ] ) ;
9
11
proclaim . deepEqual ( Int8Array . prototype [ Symbol . iterator ] , Int8Array . prototype . values ) ;
10
12
}
11
13
} ) ;
You can’t perform that action at this time.
0 commit comments