Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
(People who see this, nodex64
are debug binaries for node which you need to build yourself. Debug build is required. I will add more elaborate instructions later).
Example:
$ nodex64 ./src/run.js test.js
In total 50 (10 unique) optimizations were done taking 0.80 seconds of compiler time.
Found 11 issues.
Critical (3):
- Function `doPhase` was hard deoptimized 11 times:
1. At bailout position 2 an assumption failed: Expected a value not to be an integer. (check-non-smi)
2. At bailout position 4 an assumption failed: Expected a value to be an integer. (check-smi)
3. At bailout position 2 an assumption failed: Expected a value to be an integer. (check-smi)
- Function `disabled` cannot be optimized because it contains a switch-statement that has case clauses that are either not integer literals or string literals
- Function `doPhase` cannot be optimized because it has been reoptimized too many times.
High (6):
- Function `THISISTHEFUNCTION` was hard deoptimized 4 times:
1. At bailout position 14 an assumption failed: Expected a value not to be an integer. (check-non-smi)
2. At bailout position 10 an assumption failed: Expected integer division operation not to be passed a 0 dividend, negative zero, not to overflow signed int32 range or have a non-zero remainder. (div-i)
3. At bailout position 8 an assumption failed: Expected an object to have a certain hidden class. (check-maps)
4. At bailout position 1 an assumption failed: Expected numeric property access not to be made out of bounds. (bounds-check)
- The small function `noInline2` when called from the function `MissingInlineOpportunities` cannot be inlined because the former creates closures.
- The small function `ClosureClass` when called from the function `redefinitionAbuse` cannot be inlined because the former creates closures.
- The small function `redefinitionAbuse` when called from the function `[anonymous]` cannot be inlined because they do not share the same scope.
- The function `ClosureClass.setAge` was re-defined at least 152 times.
- The function `ClosureClass.getAge` was re-defined at least 152 times.
Medium (2):
- The function `[anonymous]` when called from the function `MissingInlineOpportunities` cannot be inlined because they do not share the same scope.
- The function `[anonymous]` when called from the function `[anonymous]` cannot be inlined because they do not share the same scope.
Low (0):
FAQs
Node runtime performance analyser
The npm package nodeperf receives a total of 3 weekly downloads. As such, nodeperf popularity was classified as not popular.
We found that nodeperf demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.