Delete duplicate "`Array#reverse` is not a constructor" test (#3342)

It's already tested by test/built-ins/Array/prototype/reverse/not-a-constructor.js
This commit is contained in:
Nicolò Ribaudo 2021-12-10 20:09:36 +01:00 committed by GitHub
parent 4fa52c8d2d
commit 2b2d35de69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 14 deletions

View File

@ -1,14 +0,0 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The reverse property of Array can't be used as constructor
esid: sec-array.prototype.reverse
description: >
If property does not implement the internal [[Construct]] method,
throw a TypeError exception
---*/
assert.throws(TypeError, () => {
new Array.prototype.reverse();
});