mirror of
https://github.com/tc39/test262.git
synced 2025-06-15 11:30:32 +02:00
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:
parent
4fa52c8d2d
commit
2b2d35de69
@ -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();
|
|
||||||
});
|
|
Loading…
x
Reference in New Issue
Block a user