-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
js-api tests broken after #1796 #1828
Comments
Do we not run any of these tests are part of CI? If not, I think we can/should add support for running at least some tests using jsvu version of d8/spidermonkey/jsc? |
(BTW since #1728 landed you don't need to add |
Ah I see. Perhaps we could use |
I'm fine with either, but don't feel knowledgeable enough to set that up. ;) |
I'll take a stab at it. I'd also love it if we could run some of the tests under |
I tried running the spec tests under JS and things still seems broken in various ways. I downloaded https://nodejs.org/download/v8-canary/v${VERSION}/node-v23.0.0-v8-canary20240819f52f1c2f1c-linux-x64.tar.xz and then did:
It ran into a bunch of issues that look like incorrect code being generated by interpreter/script/js.ml. For example in the generated br_table.js I see:
But |
Can this issue be closed now? |
Yes, this is fixed! |
I don't have time to investigate this further currently (and my OCaml knowledge is limited), but after #1796 we now fail most tests in the memory64 and js-promise-integration repositories, which seem to be rebased on a branch which contains that change.
The resulting JS code looks like
Where
instance
simply does:This can't work.
To reproduce, run something like:
make -C interpreter wasm && (cd test/core && ./run.py --wasm ../../interpreter/wasm --js $HOME/v8/out/Optdebug/d8 address.wast)
This produces an error like:
The text was updated successfully, but these errors were encountered: