mirror of https://github.com/tc39/test262.git
Remove invalid test from ArrayBuffer subclassing
Fixes gh-696 As pointed in gh-696, the ArrayBuffer ctor won't throw a RangeError when invoked without arguments. Instead of fixing the invalid assertion, this commit removes it as the coverage for subclassing is already satisfied by the use of slice.
This commit is contained in:
parent
a78cf3de4a
commit
c204c30a54
|
@ -24,8 +24,3 @@ var sliced = ab.slice(0, 1);
|
||||||
|
|
||||||
assert(sliced instanceof AB);
|
assert(sliced instanceof AB);
|
||||||
assert(sliced instanceof ArrayBuffer);
|
assert(sliced instanceof ArrayBuffer);
|
||||||
assert.notSameValue(ab, sliced);
|
|
||||||
|
|
||||||
assert.throws(RangeError, function() {
|
|
||||||
new AB();
|
|
||||||
});
|
|
||||||
|
|
Loading…
Reference in New Issue