Fix typo in Node.js feature test

There is no global `window` object in Node.