blob: 1a501a013e363b896846bcbcc1b9e07d5da9a9af [file] [log] [blame]
// Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-delete-operator-runtime-semantics-evaluation
description: Attempts to delete super reference property references throws ReferenceError exception
features: [class]
---*/
class X {
method() {
return this;
}
}
class Y extends X {
method() {
delete super.method;
}
}
const y = new Y();
assert.throws(ReferenceError, () => {
y.method();
});