FIX Handle large lengths and negative lengths in hiwire_get_length. While investigating this bug:

> ```
> Pyodide has suffered a fatal error. Please report this to the Pyodide maintainers.
> The cause of the fatal error was:
> PythonError: OverflowError: Python int too large to convert to C ssize_t
> ```
> 
> _Originally posted by @amitsaha in https://github.com/pyodide/pyodide/issues/2584#issuecomment-1139530294_

I found a different one. Turns out handling lengths correctly is quite hard.
import chai from "chai";

it("should pass a basic truthy sanity test (node)", async () => {
  await chai.assert.isFulfilled(Promise.resolve());
});

it("should pass a basic sanity test in browser (puppeteer)", async () => {
  const title = await chai.assert.isFulfilled(page.title());
  chai.assert.isString(title);
  chai.assert.equal(title, "pyodide");
});

import chai from "chai";

it("should pass a basic truthy sanity test (node)", async () => {
  await chai.assert.isFulfilled(Promise.resolve());
});

it("should pass a basic sanity test in browser (puppeteer)", async () => {
  const title = await chai.assert.isFulfilled(page.title());
  chai.assert.isString(title);
  chai.assert.equal(title, "pyodide");
});
