All: Update node-watch dependency and test fixtures for Node 12+ #1448
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Test fixtures
Node 6-10:
Node 12-14:
Test memory
Also update the memory-leak test to use a different strategy
because the V8 native
%GetWeakSetValues
function no longerexists as of V8 7.1 (or 8.1, not sure) per
https://chromium.googlesource.com/v8/v8/+/0cf4a0f82f8f810519ba0d4b3b01adef0a0a6c1d
https://chromium-review.googlesource.com/c/v8/v8/+/1238574.
Instead, inspect a heap snapshot and validate it that way.
Also expand the test so that we first verify our logic actually
works, for easier debugging in the future.
Recursive watch
As of Node 14,
fs.watch
can throw ERR_FEATURE_UNAVAILABLE_ON_PLATFORM,which is handled by node-watch 0.6.4 per
yuanchuan/node-watch@fd5d4655ca47db56.
Without this, Node 14 fails as follows:
Fixes #1430.