Skip to content

Conversation

@Danil42Russia
Copy link
Contributor

@Danil42Russia Danil42Russia commented Nov 21, 2025

After committing f9db7bd, WASM stopped working in the browser. This causes the error Failed to trace transaction: __dirname is not defined.

Due to this issue, it is not possible to run the sandbox in the browser, which prevents adding support for 12 TVM in TxTracer.

I compiled the version locally and replaced them in sandbox, the tests are passing successfully:
Screenshot 2025-11-21 at 18 25 57

If you look at the diff emulator-emscripten.js, you can see that ENVIRONMENT_IS_WEB and ENVIRONMENT_IS_NODE are now calculated based on the environment:
Screenshot 2025-11-29 at 20 50 33

See:

  1. https://emscripten.org/docs/tools_reference/settings_reference.html#environment

@neodix42
Copy link
Member

There were issues in running sandbox tests under nodejs with the web mode. Let me double check with the team.

@EmelyanenkoK EmelyanenkoK merged commit ab0e65b into ton-blockchain:master Dec 1, 2025
15 of 16 checks passed
@Danil42Russia Danil42Russia deleted the danil42russia/emscripten branch December 3, 2025 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants