MCPcopy Create free account
hub / github.com/bytecodealliance/javy / parse_invalid_js

Function parse_invalid_js

crates/codegen/src/js.rs:179–183  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177
178 #[test]
179 fn parse_invalid_js() -> Result<()> {
180 let res = parse("fun foo() {}");
181 assert_eq!("Invalid JavaScript", res.err().unwrap().to_string());
182 Ok(())
183 }
184
185 #[test]
186 fn parse_one_func_export() -> Result<()> {

Callers

nothing calls this directly

Calls 1

parseFunction · 0.70

Tested by

no test coverage detected