()
| 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<()> { |