mirror of https://github.com/tc39/test262.git
Remove duplicate of "subclass-species-constructor-resolve-count.js"
This commit is contained in:
parent
281eb10b28
commit
739c4cd78d
|
@ -1,22 +0,0 @@
|
|||
// Copyright (C) 2017 V8. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
author: Sathya Gunasekaran
|
||||
description: finally calls the SpeciesConstructor
|
||||
esid: sec-promise.prototype.finally
|
||||
features: [Promise.prototype.finally]
|
||||
---*/
|
||||
|
||||
|
||||
class MyPromise extends Promise {
|
||||
static get[Symbol.species]() {
|
||||
return Promise;
|
||||
}
|
||||
}
|
||||
|
||||
var p = Promise
|
||||
.resolve()
|
||||
.finally(() => MyPromise.resolve());
|
||||
|
||||
assert.sameValue(p instanceof Promise, true);
|
||||
assert.sameValue(p instanceof MyPromise, false);
|
Loading…
Reference in New Issue