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

Function parse_func_export_with_parameter

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

Source from the content-addressed store, hash-verified

191
192 #[test]
193 fn parse_func_export_with_parameter() -> Result<()> {
194 let res = parse("export function foo(bar) {}");
195 assert_eq!(
196 "Exported functions with parameters are not supported",
197 res.err().unwrap().to_string()
198 );
199 Ok(())
200 }
201
202 #[test]
203 fn parse_generator_export() -> Result<()> {

Callers

nothing calls this directly

Calls 1

parseFunction · 0.70

Tested by

no test coverage detected