mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-21 01:47:31 +00:00
[JS] Add ".js" suffix to all import statements to generate a browser compatible mjs version. (#7086)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user