Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

hoodmane
Copy link
Collaborator

@hoodmane hoodmane commented Jan 6, 2025

No description provided.

@@ -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
Copy link
Collaborator

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?

Copy link
Collaborator

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!

Copy link
Collaborator

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How's 6f92152 look?

@sbc100
Copy link
Collaborator

sbc100 commented Jan 6, 2025

Can you mention nodefs in the title somehow? Maybe prefix with [nodefs]?

@sbc100 sbc100 closed this Jan 6, 2025
@sbc100 sbc100 reopened this Jan 6, 2025
if (flags["fs"]) {
flags = flags["fs"];
}
var flags = process.binding("constants")["fs"];
Copy link
Collaborator

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.

@@ -780,6 +780,8 @@ jobs:
other.test_full_js_library*
core2.test_hello_world
core2.test_fs_write_rawfs"
core2.*nodefs*
core2.*rawfs*
Copy link
Collaborator

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.

@sbc100
Copy link
Collaborator

sbc100 commented Jan 9, 2025

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 .circleci change and just at one extra test there rather than adding all of them?

We can work on adding all of them in followup PRs perhaps?

@sbc100
Copy link
Collaborator

sbc100 commented Jan 9, 2025

For the closure compiler errors I think you can maybe add blksize to src/closure-externs/node-externs.js?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants