mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-26 03:31:12 +08:00
feat: TLA 模块 test262 入口按编译标志路由异步驱动
This commit is contained in:
@@ -223,7 +223,14 @@ fn run_and_judge(
|
||||
}
|
||||
let mut run_result: Result<JsValue, String> = Ok(JsValue::undefined());
|
||||
for module in modules {
|
||||
match vm.run(module) {
|
||||
// 按编译产物标志路由:TLA 模块走异步驱动(单次 drain 到静止、三态终结),
|
||||
// 非 TLA 模块走原同步路径零 diff。判据是编译标志而非测试元数据旗标。
|
||||
let result = if module.is_async {
|
||||
vm.run_tla(module)
|
||||
} else {
|
||||
vm.run(module)
|
||||
};
|
||||
match result {
|
||||
Ok(v) => run_result = Ok(v),
|
||||
Err(e) => {
|
||||
run_result = Err(e);
|
||||
|
||||
Reference in New Issue
Block a user