blob: 80406af00d60068f11301f04befe3771aaa777e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// 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();
});
reportCompare(0, 0);
|