mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-23 18:21:13 +08:00
fix: 修复字节码函数调用跳过扩展字执行异常问题
This commit is contained in:
@@ -59,9 +59,10 @@ fn regression_recursion_depth_limit() {
|
||||
|
||||
#[test]
|
||||
fn regression_throw_statement_errors() {
|
||||
assert_eq!(
|
||||
eval("throw 'error'"),
|
||||
"vm error: opcode THROW not yet implemented"
|
||||
let result = eval("throw 'error'");
|
||||
assert!(
|
||||
result.contains("uncaught"),
|
||||
"expected uncaught, got: {result}"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user