Per spec, the property key expression should be evaluated before calling ResolveSuperBase. Fix the Rust codegen to match the C++ pipeline's correct evaluation order.
10 lines
199 B
JavaScript
10 lines
199 B
JavaScript
// Test that delete super[key] evaluates the key expression
|
|
// before calling ResolveSuperBase, per spec.
|
|
|
|
class A {
|
|
m(key) {
|
|
delete super[key];
|
|
}
|
|
}
|
|
|
|
try { new A().m("x"); } catch {}
|