Add switch case conditions.

This commit is contained in:
Stephen Chung
2021-04-16 12:04:33 +08:00
parent c5128e15d5
commit 980a13ca42
7 changed files with 233 additions and 173 deletions

View File

@@ -540,7 +540,7 @@ impl Engine {
}
// Evaluate the function
let body = &fn_def.body.statements;
let body = &fn_def.body.0;
let result = self
.eval_stmt_block(scope, mods, state, unified_lib, this_ptr, body, true, level)