Files
ladybird/Tests/LibJS/Bytecode/input/delete-super-eval-order.js
Andreas Kling 56603319b4 LibJS/Rust: Fix evaluation order in delete super[key]
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.
2026-03-01 21:20:54 +01:00

11 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 {}