Skip to content

Instantly share code, notes, and snippets.

View zackradisic's full-sized avatar

Zack Radisic zackradisic

View GitHub Profile
@zackradisic
zackradisic / Cargo.toml
Last active January 17, 2022 18:16
code to reproduce undefined behaviour detected by Miri when using SWC. Run with this command `RUSTCFLAGS="-C debug-assertions" RUSTFLAGS="-Zrandomize-layout" MIRIFLAGS="-Zmiri-symbolic-alignment-check -Zmiri-check-number-validity -Zmiri-tag-raw-pointers -Zmiri-disable-isolation" cargo miri run`
[package]
name = "swc-miri-ub"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
swc = "0.102.2"
swc_ecmascript = { version="0.104.3", features = ["visit", "parser", "typescript"] }