psmedley / node-os2

Other
1 stars 0 forks source link

_os.cpus() returns undefined #9

Open psmedley opened 1 year ago

psmedley commented 1 year ago

This breaks qtwebengine build:

Simple test: ` // Node.js program to demonstrate the
// os.cpus() method

// Allocating os module const os = require('os');

// Printing os.cpus() values console.log(os.cpus());`

returns 'undefined'

Hacked around this (for now) in qtwebengine with https://github.com/psmedley/qt6-webengine-os2/commit/174e968c53b089d24317f02cea7ff18e40dfba13

psmedley commented 1 year ago

This is due to stub of uv_cpu_info