ladybird/Tests/LibJS/Bytecode/input/delete-super-eval-order.js

11 lines
199 B
JavaScript
Raw Normal View History

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