Merge pull request #22545 from tansongyang/rsvp-tostringtag

rsvp: Add [Symbol.toStringTag]
This commit is contained in:
Paul van Brenk
2017-12-28 16:14:14 -08:00
committed by GitHub
2 changed files with 6 additions and 0 deletions

View File

@@ -122,6 +122,8 @@ declare module 'rsvp' {
finally<U>(onFinally?: U | PromiseLike<U>): RSVP.Promise<T>;
readonly [Symbol.toStringTag]: "Promise";
static all<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(
values: [
Arg<T1>,

View File

@@ -324,3 +324,7 @@ function testOnAndOff() {
);
});
}
function testAssignableToPromise() {
const promise: Promise<number> = RSVP.resolve(0);
}