mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
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.
11 lines
199 B
JavaScript
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 {}
|