* This must always be called before creating a Parser. * * You can optionally pass in options to configure the Wasm module, the most common * one being `locateFile` to help the module find the `.wasm` file.
(moduleOptions)
| 3170 | * one being `locateFile` to help the module find the `.wasm` file. |
| 3171 | */ |
| 3172 | static async init(moduleOptions) { |
| 3173 | setModule(await initializeBinding(moduleOptions)); |
| 3174 | TRANSFER_BUFFER = C._ts_init(); |
| 3175 | LANGUAGE_VERSION = C.getValue(TRANSFER_BUFFER, "i32"); |
| 3176 | MIN_COMPATIBLE_VERSION = C.getValue(TRANSFER_BUFFER + SIZE_OF_INT, "i32"); |
| 3177 | } |
| 3178 | /** |
| 3179 | * Create a new parser. |
| 3180 | */ |
no test coverage detected