[JS] Add ".js" suffix to all import statements to generate a browser compatible mjs version. (#7086)

This commit is contained in:
Timo Sturm
2022-02-08 21:21:20 +01:00
committed by GitHub
parent c85fb690f4
commit e910bddbcc
11 changed files with 44 additions and 44 deletions

View File

@@ -1,7 +1,7 @@
import { BitWidth } from './bit-width'
import { toByteWidth, fromByteWidth } from './bit-width-util'
import { toUTF8Array, fromUTF8Array } from './flexbuffers-util'
import { Reference } from './reference'
import { BitWidth } from './bit-width.js'
import { toByteWidth, fromByteWidth } from './bit-width-util.js'
import { toUTF8Array, fromUTF8Array } from './flexbuffers-util.js'
import { Reference } from './reference.js'
export function validateOffset(dataView: DataView, offset: number, width: number): void {
if (dataView.byteLength <= offset + width || (offset & (toByteWidth(width) - 1)) !== 0) {