Skip to content

Commit c9ee52c

Browse files
VirtualTimkripken
authored andcommitted
Fix NODERAWFS + USE_PTHREADS (emscripten-core#9886)
Node.js workers are workers that also HAS_NODE.
1 parent 82af91b commit c9ee52c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/library_noderawfs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
mergeInto(LibraryManager.library, {
77
$NODERAWFS__deps: ['$ERRNO_CODES', '$FS', '$NODEFS'],
8-
$NODERAWFS__postset: 'if (ENVIRONMENT_IS_NODE) {' +
8+
$NODERAWFS__postset: 'if (ENVIRONMENT_HAS_NODE) {' +
99
'var _wrapNodeError = function(func) { return function() { try { return func.apply(this, arguments) } catch (e) { if (!e.code) throw e; throw new FS.ErrnoError(ERRNO_CODES[e.code]); } } };' +
1010
'var VFS = Object.assign({}, FS);' +
1111
'for (var _key in NODERAWFS) FS[_key] = _wrapNodeError(NODERAWFS[_key]);' +

0 commit comments

Comments
 (0)