Updates emscripten types (#41966)

Adds `canOwn` parameter to createDataFile File System method
This commit is contained in:
Louis DeScioli
2020-01-30 13:08:02 -08:00
committed by GitHub
parent 47403b246b
commit 9ad9bdfbc7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ function FSTest(): void {
FS.write(wstream, data, 0, data.length, 0);
FS.close(wstream);
FS.createDataFile('/', 'dummy2', data, true, true);
FS.createDataFile('/', 'dummy2', data, true, true, true);
const lookup = FS.lookupPath("path", { parent: true });
}
+1 -1
View File
@@ -217,7 +217,7 @@ declare namespace FS {
function createLazyFile(parent: string | FSNode, name: string, url: string, canRead: boolean, canWrite: boolean): FSNode;
function createPreloadedFile(parent: string | FSNode, name: string, url: string,
canRead: boolean, canWrite: boolean, onload?: () => void, onerror?: () => void, dontCreateFile?: boolean, canOwn?: boolean): void;
function createDataFile(parent: string | FSNode, name: string, data: ArrayBufferView, canRead: boolean, canWrite: boolean): FSNode;
function createDataFile(parent: string | FSNode, name: string, data: ArrayBufferView, canRead: boolean, canWrite: boolean, canOwn: boolean): FSNode;
}
interface Math {