Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/workflow/building/coreclr/wasm.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ In script below please replace `/path/to/runtime/` by a **absolute unix path** t
cp ./artifacts/bin/microsoft.netcore.app.runtime.browser-wasm/Debug/runtimes/browser-wasm/lib/net11.0/*.dll ./artifacts/bin/coreclr/browser.wasm.Debug/IL
cp helloworld.dll ./artifacts/bin/coreclr/browser.wasm.Debug/IL
cd ./artifacts/bin/coreclr/browser.wasm.Debug/
node ./corerun.js -c /path/to/runtime/artifacts/bin/coreclr/browser.wasm.Debug/IL /path/to/runtime/artifacts/bin/coreclr/browser.wasm.Debug/IL/helloworld.dll
node --experimental-wasm-exnref ./corerun.js -c /path/to/runtime/artifacts/bin/coreclr/browser.wasm.Debug/IL /path/to/runtime/artifacts/bin/coreclr/browser.wasm.Debug/IL/helloworld.dll
```

### Console Testing with corehost
Comment thread
pavelsavara marked this conversation as resolved.
Expand All @@ -82,7 +82,7 @@ You can also run the corehost directly in Node.js:
cp ./artifacts/bin/microsoft.netcore.app.runtime.browser-wasm/Debug/runtimes/browser-wasm/lib/net11.0/*.dll ./artifacts/bin/coreclr/browser.wasm.Debug/corehost
cp helloworld.dll ./artifacts/bin/coreclr/browser.wasm.Debug/corehost
cd ./artifacts/bin/coreclr/browser.wasm.Debug/corehost
node ./main.mjs
node --experimental-wasm-exnref ./main.mjs
```

## Debugging
Expand Down
4 changes: 2 additions & 2 deletions src/mono/sample/wasm/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@
<Exec WorkingDirectory="bin/publish/wwwroot" Command="v8 $(_WasmMainJSFileName) $(Args)" IgnoreExitCode="true" />
</Target>
<Target Name="RunSampleWithNode" DependsOnTargets="BuildSampleInTree;_ComputeMainJSFileName">
<Exec WorkingDirectory="bin/publish/wwwroot" Command="node $(_WasmMainJSFileName) $(Args)" IgnoreExitCode="true" />
<Exec WorkingDirectory="bin/publish/wwwroot" Command="node --experimental-wasm-exnref $(_WasmMainJSFileName) $(Args)" IgnoreExitCode="true" />
</Target>
<Target Name="DebugSampleWithNode" DependsOnTargets="BuildSampleInTree;_ComputeMainJSFileName">
<Exec WorkingDirectory="bin/publish/wwwroot" Command="node --inspect=9222 $(_WasmMainJSFileName) $(Args)" IgnoreExitCode="true" />
<Exec WorkingDirectory="bin/publish/wwwroot" Command="node --experimental-wasm-exnref --inspect=9222 $(_WasmMainJSFileName) $(Args)" IgnoreExitCode="true" />
</Target>
<Target Name="CheckServe">
<Exec Command="dotnet tool install -g dotnet-serve" IgnoreExitCode="true" />
Expand Down
4 changes: 2 additions & 2 deletions src/mono/sample/wasm/wasm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ run-console:
cd bin/$(CONFIG)/wwwroot && $(V8_PATH) --stack-trace-limit=1000 --single-threaded $(MAIN_JS) -- $(ARGS)

run-console-node:
cd bin/$(CONFIG)/wwwroot && node --stack-trace-limit=1000 --single-threaded $(MAIN_JS) $(ARGS)
cd bin/$(CONFIG)/wwwroot && node --experimental-wasm-exnref --stack-trace-limit=1000 --single-threaded $(MAIN_JS) $(ARGS)

debug-console-node:
cd bin/$(CONFIG)/wwwroot && node --inspect=9222 --stack-trace-limit=1000 --single-threaded $(MAIN_JS) $(ARGS)
cd bin/$(CONFIG)/wwwroot && node --experimental-wasm-exnref --inspect=9222 --stack-trace-limit=1000 --single-threaded $(MAIN_JS) $(ARGS)
2 changes: 1 addition & 1 deletion src/tests/Common/CLRTest.Execute.Bash.targets
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ else
echo CLRTestExecutionArguments: ${CLRTestExecutionArguments[@]}
echo node version: `node -v`
echo Timeout in ms: $__TestTimeout
cmd=( node --stack-size=8192 "${CORE_ROOT}/corerun.js" -c "${CORE_ROOT}" "${PWD}/${ExePath}" "${CLRTestExecutionArguments[@]}" )
cmd=( node --experimental-wasm-exnref --stack-size=8192 "${CORE_ROOT}/corerun.js" -c "${CORE_ROOT}" "${PWD}/${ExePath}" "${CLRTestExecutionArguments[@]}" )
echo Running: "${cmd[@]}"
run_with_timeout $__TestTimeout "${cmd[@]}"
fi
Expand Down
2 changes: 1 addition & 1 deletion src/tests/Common/CLRTest.Execute.Batch.targets
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ IF NOT DEFINED RunWithNodeJS (
ECHO CLRTestExecutionArguments: %CLRTestExecutionArguments%
ECHO Timeout in ms: !__TestTimeout!
Comment thread
pavelsavara marked this conversation as resolved.

set "__RunCmd=node --stack-size=8192 "!__CoreRootWin!\corerun.js" -c "!__CoreRootUnix!" "!__ExePathUnix!" %CLRTestExecutionArguments%"
set "__RunCmd=node --experimental-wasm-exnref --stack-size=8192 "!__CoreRootWin!\corerun.js" -c "!__CoreRootUnix!" "!__ExePathUnix!" %CLRTestExecutionArguments%"
ECHO Running: !__RunCmd!
call :RunWithTimeout !__TestTimeout!
set CLRTestExitCode=!ERRORLEVEL!
Expand Down
Loading