mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-25 03:01:12 +08:00
style: 自动格式化
This commit is contained in:
@@ -74,7 +74,11 @@ impl Vm {
|
||||
return Ok(result);
|
||||
}
|
||||
|
||||
let method_names = if hint.prefer_string() { ["toString", "valueOf"] } else { ["valueOf", "toString"] };
|
||||
let method_names = if hint.prefer_string() {
|
||||
["toString", "valueOf"]
|
||||
} else {
|
||||
["valueOf", "toString"]
|
||||
};
|
||||
|
||||
for method_name in method_names {
|
||||
let method_si = self.kernel_core.perm_interner().intern(method_name).0;
|
||||
|
||||
Reference in New Issue
Block a user