mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-18 17:31:29 +00:00
Always try to eliminate branches if tree-shaking is enabled
This commit is contained in:
2
std/assembly.d.ts
vendored
2
std/assembly.d.ts
vendored
@ -531,7 +531,7 @@ declare const Mathf: IMath<f32>;
|
||||
/** Annotates an element as a program global. */
|
||||
declare function global(target: Function, propertyKey: string, descriptor: any): void;
|
||||
|
||||
/** Annotates a method as an operator overload. */
|
||||
/** Annotates a method as an operator overload for the specified `token`. */
|
||||
declare function operator(token: string): (target: any, propertyKey: string, descriptor: any) => void;
|
||||
|
||||
/** Annotates a class as being unmanaged with limited capabilities. */
|
||||
|
@ -2,10 +2,6 @@ import {
|
||||
TypedArray
|
||||
} from "./internal/typedarray";
|
||||
|
||||
import {
|
||||
storeUnsafeWithOffset
|
||||
} from "./internal/arraybuffer";
|
||||
|
||||
export class Int8Array extends TypedArray<i8> {
|
||||
static readonly BYTES_PER_ELEMENT: usize = sizeof<i8>();
|
||||
|
||||
|
Reference in New Issue
Block a user