-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove compatibility code for ancient node versions #23316
base: main
Are you sure you want to change the base?
Conversation
@@ -123,15 +119,6 @@ addToLibrary({ | |||
var stat; | |||
NODEFS.tryFSOperation(() => stat = fs.lstatSync(path)); | |||
if (NODEFS.isWindows) { | |||
// node.js v0.10.20 doesn't report blksize and blocks on Windows. Fake |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do still support MIN_NODE_VERSION=101900 (10.19.0) so if we want to drop this I guess we would need to bump that minimum too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh wait, thats is 0.10.20!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add some stat tests to test-node-compat
in .circleci/config.yml
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How's 6f92152 look?
Can you mention nodefs in the title somehow? Maybe prefix with |
if (flags["fs"]) { | ||
flags = flags["fs"]; | ||
} | ||
var flags = process.binding("constants")["fs"]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was going to suggest single quotes here but it looks like this file users double-quote a lot, so maybe we leave as is.
.circleci/config.yml
Outdated
@@ -780,6 +780,8 @@ jobs: | |||
other.test_full_js_library* | |||
core2.test_hello_world | |||
core2.test_fs_write_rawfs" | |||
core2.*nodefs* | |||
core2.*rawfs* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thats quite a few tests but maybe thats fine. Can you remove core2.test_fs_write_rawfs above?
And you need to move the closing quote the last line.
It looks like not all of those tests are actually runnable on the oldest version of node that we support (v10.19.0). Can you perhaps revert the We can work on adding all of them in followup PRs perhaps? |
For the closure compiler errors I think you can maybe add |
No description provided.