-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[wasm] running tests on NodeJs fails with globalThis is not defined
#65485
Comments
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsHitting this on the emscripten bump PR.
I'm disabling nodejs test runs for that PR.
|
They are still unstable, and fail with: ``` [01:27:29] fail: /datadisks/disk1/work/A3DA08F7/w/B1B30976/e/test-main.js:97 [01:27:29] fail: if (typeof globalThis.crypto === 'undefined') { [01:27:29] fail: ^ [01:27:29] fail: [01:27:29] fail: ReferenceError: globalThis is not defined [01:27:29] fail: at Object.<anonymous> (/datadisks/disk1/work/A3DA08F7/w/B1B30976/e/test-main.js:97:1) [01:27:29] fail: at Module._compile (internal/modules/cjs/loader.js:778:30) [01:27:29] fail: at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) [01:27:29] fail: at Module.load (internal/modules/cjs/loader.js:653:32) [01:27:29] fail: at tryModuleLoad (internal/modules/cjs/loader.js:593:12) [01:27:29] fail: at Function.Module._load (internal/modules/cjs/loader.js:585:3) [01:27:29] fail: at Function.Module.runMain (internal/modules/cjs/loader.js:831:12) [01:27:29] fail: at startup (internal/bootstrap/node.js:283:19) [01:27:29] fail: at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3) ``` Issue: dotnet#65485
I'm not sure what is happening here but it looks like a node specific case at this point, @maraf please work with @radekdoulik to look into it |
This looks like the new nodeJS version (which we get from emsdk) is not used. Why ? |
The new emscripten has a newer version of node, which is in different folder ( |
Could we avoid hardcoding the version number? |
Also please add something like this to
So that we don't have think about why, next time. |
Just a heads up, that we are now running tests on nodejs only on PRs. Once this is fixed, we could enable that for rolling builds. |
Both PRs I mentioned are merged. I think we can close this one. |
Hitting this on the emscripten bump PR.
Build:
I'm disabling nodejs test runs for that PR.
cc @pavelsavara @maraf
The text was updated successfully, but these errors were encountered: