* Mounts a file in the Lua environment asynchronously. * @param path - Path to the file in the Lua environment. * @param content - Content of the file to be mounted. * @returns - A Promise that resolves once the file is mounted.
(path: string, content: string | ArrayBufferView)
| 36 | * @returns - A Promise that resolves once the file is mounted. |
| 37 | */ |
| 38 | public async mountFile(path: string, content: string | ArrayBufferView): Promise<void> { |
| 39 | this.mountFileSync(await this.getLuaModule(), path, content) |
| 40 | } |
| 41 | |
| 42 | /** |
| 43 | * Mounts a file in the Lua environment synchronously. |
no test coverage detected