https://github.com/jsmonk/v8-eh-with-gc-issue-reproducer
https://github.com/jsmonk/v8-eh-with-gc-issue-reproducer
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jsmonk/v8-eh-with-gc-issue-reproducer
- Owner: JSMonk
- Created: 2024-03-27T09:47:35.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-03-27T10:33:00.000Z (about 1 year ago)
- Last Synced: 2025-01-18T11:18:23.646Z (4 months ago)
- Language: Makefile
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WebAssembly GC and New Exception Handling Issue
This repository contains a simple reproducer for the issue of using GC struct types in combination with the new Exception Handling proposal.
## Description of the Issue
In case of usage of a `ref` as the result of a `try_table` block, I constantly receive the following exception:
```
wasm-function[1]:0x4b: RuntimeError: unreachable
```I reproduced the issue with V8 versions from `12.4.94` to `12.5.104`.
I didn't check it for the earlier versions.## How to run the reproducer
This requires the V8 shell (`d8`) and [wasm-tools](https://github.com/bytecodealliance/wasm-tools) to be installed on your machine.
Tu run the reproducer, use `make`:
```bash
make D8_PATH=/path/to/your/d8
```Change the `reproducer.wat` file to play around the reproducer.