mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-24 02:31:13 +08:00
feat: 注入 harness 并补齐关键全局内建
This commit is contained in:
@@ -398,6 +398,12 @@ fn compile_infinity_ok() {
|
||||
assert!(!module.bytecode.is_empty());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn compile_global_this_ok() {
|
||||
let module = compile_source("globalThis");
|
||||
assert!(!module.bytecode.is_empty());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn compile_neg_infinity_ok() {
|
||||
let module = compile_source("1 / -Infinity");
|
||||
|
||||
Reference in New Issue
Block a user