Constructors

  • Parameters

    • desiredFeatures: (
          | "bigInt"
          | "bulkMemory"
          | "exceptions"
          | "extendedConst"
          | "gc"
          | "memory64"
          | "multiValue"
          | "mutableGlobals"
          | "referenceTypes"
          | "relaxedSimd"
          | "saturatedFloatToInt"
          | "signExtensions"
          | "simd"
          | "streamingCompilation"
          | "tailCall"
          | "threads"
      )[]

    Returns WasmSupport

Properties

desiredFeatures: (
    | "bigInt"
    | "bulkMemory"
    | "exceptions"
    | "extendedConst"
    | "gc"
    | "memory64"
    | "multiValue"
    | "mutableGlobals"
    | "referenceTypes"
    | "relaxedSimd"
    | "saturatedFloatToInt"
    | "signExtensions"
    | "simd"
    | "streamingCompilation"
    | "tailCall"
    | "threads"
)[]

Accessors

  • get allowWasm(): boolean
  • Returns boolean

  • set allowWasm(v: boolean): void
  • Parameters

    • v: boolean

    Returns void

  • get canUseWasm(): boolean
  • Returns boolean

  • get featureSupport(): Readonly<
        Partial<
            Record<
                | "bigInt"
                | "bulkMemory"
                | "exceptions"
                | "extendedConst"
                | "gc"
                | "memory64"
                | "multiValue"
                | "mutableGlobals"
                | "referenceTypes"
                | "relaxedSimd"
                | "saturatedFloatToInt"
                | "signExtensions"
                | "simd"
                | "streamingCompilation"
                | "tailCall"
                | "threads",
                boolean,
            >,
        >,
    >
  • Returns Readonly<
        Partial<
            Record<
                | "bigInt"
                | "bulkMemory"
                | "exceptions"
                | "extendedConst"
                | "gc"
                | "memory64"
                | "multiValue"
                | "mutableGlobals"
                | "referenceTypes"
                | "relaxedSimd"
                | "saturatedFloatToInt"
                | "signExtensions"
                | "simd"
                | "streamingCompilation"
                | "tailCall"
                | "threads",
                boolean,
            >,
        >,
    >

  • get forceWasm(): boolean
  • Returns boolean

  • set forceWasm(v: boolean): void
  • Parameters

    • v: boolean

    Returns void

  • get isDesiredFeatureSetSupported(): boolean
  • Returns boolean

  • get isInitialized(): boolean
  • Returns boolean

Methods

  • Returns Promise<void>

  • Parameters

    • features: (
          | "bigInt"
          | "bulkMemory"
          | "exceptions"
          | "extendedConst"
          | "gc"
          | "memory64"
          | "multiValue"
          | "mutableGlobals"
          | "referenceTypes"
          | "relaxedSimd"
          | "saturatedFloatToInt"
          | "signExtensions"
          | "simd"
          | "streamingCompilation"
          | "tailCall"
          | "threads"
      )[]

    Returns Promise<boolean>

  • Returns Promise<void>

  • Parameters

    • desiredFeatures: (
          | "bigInt"
          | "bulkMemory"
          | "exceptions"
          | "extendedConst"
          | "gc"
          | "memory64"
          | "multiValue"
          | "mutableGlobals"
          | "referenceTypes"
          | "relaxedSimd"
          | "saturatedFloatToInt"
          | "signExtensions"
          | "simd"
          | "streamingCompilation"
          | "tailCall"
          | "threads"
      )[]

    Returns Promise<WasmSupport>