Coverage: delete undefined.property. Fixes gh-2763

This commit is contained in:
Rick Waldron 2020-09-11 09:45:47 -04:00
parent 21cdcb85d1
commit 3b1f4f7e1b
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
// 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: >
delete operations throws TypeError exception when base object is unresolvable reference.
---*/
assert.throws(TypeError, () => {
delete Object[0][0];
});