Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! src,lib: expose memory file mapping flag
  • Loading branch information
joaocgreis committed Aug 22, 2019
commit 45cea0bde75ef3c8e25775eaa4158968f38dff16
4 changes: 1 addition & 3 deletions src/node_constants.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1127,9 +1127,7 @@ void DefineSystemConstants(Local<Object> target) {
NODE_DEFINE_CONSTANT(target, O_EXCL);
#endif

#ifdef UV_FS_O_FILEMAP
NODE_DEFINE_CONSTANT(target, UV_FS_O_FILEMAP);
#endif
NODE_DEFINE_CONSTANT(target, UV_FS_O_FILEMAP);

#ifdef O_NOCTTY
NODE_DEFINE_CONSTANT(target, O_NOCTTY);
Expand Down
4 changes: 4 additions & 0 deletions test/parallel/test-fs-open-flags.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ assert.strictEqual(stringToFlags('max+'),
() => stringToFlags(flags),
{ code: 'ERR_INVALID_OPT_VALUE', type: TypeError }
);
common.expectsError(
() => stringToFlags(`m${flags}`),
{ code: 'ERR_INVALID_OPT_VALUE', type: TypeError }
);
});

common.expectsError(
Expand Down