mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-24 02:31:13 +08:00
test: 数值断言容忍 int 表示,类私有字段 for-in 用例补公有字段
This commit is contained in:
@@ -89,7 +89,7 @@ fn closure_write_upvalue() {
|
||||
#[test]
|
||||
fn closure_nested_expr_capture() {
|
||||
let result = eval("function outer(){ var x=1; return function(){return x+1}()} outer()").unwrap();
|
||||
assert_eq!(result.as_double(), 2.0);
|
||||
assert_eq!(result.as_int(), 2);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user