2.9.1.3.4.4 DataView.prototype.GetInt16(byteOffset, littleEndian)

Gets the Int16 value at offset byteOffset in the DataView, using the provided endianness.

  1. Let O be ToObject(this)

  2. Let isLittleEndian be ToBoolean(littleEndian) if provided, else false

  3. If the [[Class]] internal property of O is not "DataView", raise a TypeError.

  4. Return GetValue(byteOffset, isLittleEndian, Int16)