feat: 支持 class 静态方法与静态 super

This commit is contained in:
爱特每羊队
2026-06-09 09:59:42 +08:00
parent 5638638909
commit b2540f427b
4 changed files with 90 additions and 8 deletions
@@ -170,6 +170,15 @@ fn derived_class_instanceof_parent() {
);
}
#[test]
fn derived_constructor_inherits_parent_constructor_chain() {
assert_bool!(
eval("class A {} class B extends A {} Object.getPrototypeOf(B) === A"),
true,
"derived constructor __proto__ parent"
);
}
// -- instanceof for native types should NOT respond to their own false positives --
#[test]
fn number_not_instanceof_array() {