Skip to content

Commit d790be7

Browse files
authored
Feedback from #19065. NFC (#19078)
1 parent 055c6e8 commit d790be7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/library.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3654,7 +3654,7 @@ mergeInto(LibraryManager.library, {
36543654

36553655
$HandleAllocator__docs: '/** @constructor */',
36563656
$HandleAllocator: function() {
3657-
// Reserve slot 0 so that 0 is always and invalid handle
3657+
// Reserve slot 0 so that 0 is always an invalid handle
36583658
this.allocated = [undefined];
36593659
this.freelist = [];
36603660
this.get = function(id) {

src/library_wasmfs_opfs.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ mergeInto(LibraryManager.library, {
1616

1717
_wasmfs_opfs_init_root_directory__deps: ['$wasmfsOPFSDirectoryHandles'],
1818
_wasmfs_opfs_init_root_directory: async function(ctx) {
19-
// allocated.length start of as 1 since 0 is a reserved handle
19+
// allocated.length starts off as 1 since 0 is a reserved handle
2020
if (wasmfsOPFSDirectoryHandles.allocated.length == 1) {
21-
// Directory 0 is reserved as the root
2221
let root = await navigator.storage.getDirectory();
2322
wasmfsOPFSDirectoryHandles.allocated.push(root);
2423
}

0 commit comments

Comments
 (0)