mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-27 04:01:11 +08:00
style: 自动格式化
This commit is contained in:
@@ -208,8 +208,7 @@ impl Vm {
|
|||||||
} else {
|
} else {
|
||||||
// 无函数体的函数对象(如 Function.prototype):IsConstructor 为假,
|
// 无函数体的函数对象(如 Function.prototype):IsConstructor 为假,
|
||||||
// 按规范抛 TypeError(此前该分支不可达,报普通 Error 属内部错误)。
|
// 按规范抛 TypeError(此前该分支不可达,报普通 Error 属内部错误)。
|
||||||
self
|
self.raise_type_error("NEW_EXPRESSION: constructor is not a constructor")
|
||||||
.raise_type_error("NEW_EXPRESSION: constructor is not a constructor")
|
|
||||||
.map(|_| true)
|
.map(|_| true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user