diff options
Diffstat (limited to 'src/library_memfs.js')
-rw-r--r-- | src/library_memfs.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/library_memfs.js b/src/library_memfs.js index 588bbabd..9f528108 100644 --- a/src/library_memfs.js +++ b/src/library_memfs.js @@ -222,7 +222,9 @@ mergeInto(LibraryManager.library, { #if USE_TYPED_ARRAYS == 2 if (length && contents.length === 0 && position === 0 && buffer.subarray) { // just replace it with the new data +#if ASSERTIONS assert(buffer.length); +#endif if (canOwn && buffer.buffer === HEAP8.buffer && offset === 0) { node.contents = buffer; // this is a subarray of the heap, and we can own it node.contentMode = MEMFS.CONTENT_OWNING; |