mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-17 17:01:37 +00:00
optimize array literal init, warn on unsupported inlining
This commit is contained in:
@ -2,7 +2,7 @@ import { ALLOCATE, REGISTER, HEADER, HEADER_SIZE, MAX_BYTELENGTH } from "./runti
|
||||
|
||||
@sealed export class ArrayBuffer {
|
||||
|
||||
@inline static isView<T>(value: T): bool {
|
||||
static isView<T>(value: T): bool {
|
||||
if (value) {
|
||||
if (value instanceof Int8Array) return true;
|
||||
if (value instanceof Uint8Array) return true;
|
||||
|
Reference in New Issue
Block a user