zuzu-rust 0.1.1

Rust implementation of ZuzuScript
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from std/eval import eval;
from test/more import *;

let err := exception( function () {
	eval(
		"async function boom () {\n"
		_ "  throw new Exception( message: \"async-boom\" );\n"
		_ "}\n"
		_ "await {\n"
		_ "  boom();\n"
		_ "};",
	);
} );

ok( err ≢ false, "eval reports exception from async code path" );
like( err, /async-boom/, "eval surfaces thrown message from async block" );

done_testing();