diff --git a/externs/es6.js b/externs/es6.js index fab8d3ace2d..4057a8cf219 100644 --- a/externs/es6.js +++ b/externs/es6.js @@ -406,7 +406,8 @@ ArrayBuffer.isView = function(arg) {}; /** - * @constructor + * @interface + * @see https://webidl.spec.whatwg.org/#ArrayBufferView */ function ArrayBufferView() {} @@ -447,12 +448,13 @@ var BufferSource; /** - * @constructor - * @implements {IArrayLike} - * @implements {Iterable} + * @interface + * @extends {IArrayLike} + * @extends {Iterable} * @extends {ArrayBufferView} + * @see https://tc39.es/ecma262/multipage/indexed-collections.html#sec-typedarray-objects */ -function TypedArray() {}; +function TypedArray() {} /** @const {number} */ TypedArray.prototype.BYTES_PER_ELEMENT; @@ -730,7 +732,7 @@ TypedArray.prototype[Symbol.iterator] = function() {}; * @param {number=} opt_byteOffset * @param {number=} opt_length * @constructor - * @extends {TypedArray} + * @implements {TypedArray} * @throws {Error} * @modifies {arguments} If the user passes a backing array, then indexed * accesses will modify the backing array. JSCompiler does not model @@ -776,7 +778,7 @@ Int8Array.of = function(var_args) {}; * @param {number=} opt_byteOffset * @param {number=} opt_length * @constructor - * @extends {TypedArray} + * @implements {TypedArray} * @throws {Error} * @modifies {arguments} */ @@ -812,7 +814,7 @@ Uint8Array.of = function(var_args) {}; * @param {number=} opt_byteOffset * @param {number=} opt_length * @constructor - * @extends {TypedArray} + * @implements {TypedArray} * @throws {Error} * @modifies {arguments} */ @@ -857,7 +859,7 @@ var CanvasPixelArray; * @param {number=} opt_byteOffset * @param {number=} opt_length * @constructor - * @extends {TypedArray} + * @implements {TypedArray} * @throws {Error} * @modifies {arguments} */ @@ -893,7 +895,7 @@ Int16Array.of = function(var_args) {}; * @param {number=} opt_byteOffset * @param {number=} opt_length * @constructor - * @extends {TypedArray} + * @implements {TypedArray} * @throws {Error} * @modifies {arguments} */ @@ -929,7 +931,7 @@ Uint16Array.of = function(var_args) {}; * @param {number=} opt_byteOffset * @param {number=} opt_length * @constructor - * @extends {TypedArray} + * @implements {TypedArray} * @throws {Error} * @modifies {arguments} */ @@ -965,7 +967,7 @@ Int32Array.of = function(var_args) {}; * @param {number=} opt_byteOffset * @param {number=} opt_length * @constructor - * @extends {TypedArray} + * @implements {TypedArray} * @throws {Error} * @modifies {arguments} */ @@ -1001,7 +1003,7 @@ Uint32Array.of = function(var_args) {}; * @param {number=} opt_byteOffset * @param {number=} opt_length * @constructor - * @extends {TypedArray} + * @implements {TypedArray} * @throws {Error} * @modifies {arguments} */ @@ -1037,7 +1039,7 @@ Float32Array.of = function(var_args) {}; * @param {number=} opt_byteOffset * @param {number=} opt_length * @constructor - * @extends {TypedArray} + * @implements {TypedArray} * @throws {Error} * @modifies {arguments} */ @@ -1073,7 +1075,7 @@ Float64Array.of = function(var_args) {}; * @param {number=} byteOffset * @param {number=} bufferLength * @constructor - * @extends {TypedArray} + * @implements {TypedArray} * @throws {Error} * @modifies {arguments} */ @@ -1109,7 +1111,7 @@ BigInt64Array.of = function(var_args) {}; * @param {number=} byteOffset * @param {number=} bufferLength * @constructor - * @extends {TypedArray} + * @implements {TypedArray} * @throws {Error} * @modifies {arguments} */ @@ -1140,7 +1142,7 @@ BigUint64Array.of = function(var_args) {}; * @param {number=} opt_byteOffset * @param {number=} opt_byteLength * @constructor - * @extends {ArrayBufferView} + * @implements {ArrayBufferView} * @throws {Error} * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays/DataView */