mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-25 11:11:11 +08:00
fix: 未声明标识符读取抛 ReferenceError(typeof 特判返回 undefined)
This commit is contained in:
@@ -738,6 +738,8 @@ mod tests {
|
||||
assert_contract(OpCode::LOAD_VAR, Some(1), &[2], true);
|
||||
assert_contract(OpCode::STORE_VAR, Some(1), &[2], false);
|
||||
assert_contract(OpCode::LOAD_CONST, Some(1), &[], true);
|
||||
assert_contract(OpCode::LOAD_GLOBAL, Some(1), &[], false);
|
||||
assert_contract(OpCode::LOAD_GLOBAL_TYPEOF, Some(1), &[], false);
|
||||
assert_contract(OpCode::LOAD_UPVALUE, Some(1), &[], true);
|
||||
assert_contract(OpCode::CREATE_CLOSURE, Some(1), &[], true);
|
||||
assert_contract(OpCode::STORE_UPVALUE, None, &[2], false);
|
||||
|
||||
Reference in New Issue
Block a user