blob: cd72fbe4277e67fe66035b950f5e8db6ac3d1057 [file] [log] [blame]
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-delete-operator-runtime-semantics-evaluation
description: SuperReferences may not be deleted
info: |
[...]
5.If IsPropertyReference(ref) is true, then
a. If IsSuperReference(ref) is true, throw a ReferenceError exception.
features: [class]
---*/
class C extends Object {
constructor() {
super();
delete super.x;
}
}
assert.throws(ReferenceError, () => {
new C();
});