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

Function parse_named_func_export

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

Source from the content-addressed store, hash-verified

233
234 #[test]
235 fn parse_named_func_export() -> Result<()> {
236 let exports = parse("function foo() {}; export { foo };")?;
237 assert_eq!(vec!["foo"], exports);
238 Ok(())
239 }
240
241 #[test]
242 fn parse_named_func_export_with_arg() -> Result<()> {

Callers

nothing calls this directly

Calls 1

parseFunction · 0.70

Tested by

no test coverage detected