style: 自动格式化
This commit is contained in:
@@ -34,7 +34,11 @@ fn function_bind_creates_wrapper() {
|
||||
fn function_constructor_is_global() {
|
||||
let mut vm = Vm::new();
|
||||
let result = eval(&mut vm, "typeof Function").unwrap();
|
||||
let rendered = vm.kernel_core().string_forge().lookup(result.as_string_index()).unwrap_or_default();
|
||||
let rendered = vm
|
||||
.kernel_core()
|
||||
.string_forge()
|
||||
.lookup(result.as_string_index())
|
||||
.unwrap_or_default();
|
||||
assert_eq!(rendered, "function");
|
||||
}
|
||||
|
||||
@@ -82,7 +86,11 @@ fn function_to_string_includes_function() {
|
||||
let mut vm = Vm::new();
|
||||
let result = eval(&mut vm, "Math.max.toString()").unwrap();
|
||||
assert!(result.is_string());
|
||||
let rendered = vm.kernel_core().string_forge().lookup(result.as_string_index()).unwrap_or_default();
|
||||
let rendered = vm
|
||||
.kernel_core()
|
||||
.string_forge()
|
||||
.lookup(result.as_string_index())
|
||||
.unwrap_or_default();
|
||||
assert_eq!(rendered, "function max() { [native code] }");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user