Skip to content

Commit

Permalink
Fix tests in older engines
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Jun 21, 2021
1 parent d452c97 commit 0927c7e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
@@ -1,7 +1,7 @@
let resolve;
let promise = new Promise((r) => (resolve = r));
let iterable = {
[Symbol.asyncIterator]() {
[Symbol.asyncIterator || "@@asyncIterator"]() {
return {
next: () => promise,
};
Expand Down
Expand Up @@ -4,7 +4,7 @@ let steps = [
];

let iterable = {
[Symbol.asyncIterator]() {
[Symbol.asyncIterator || "@@asyncIterator"]() {
return {
next: () => steps.shift(),
};
Expand Down
@@ -1,7 +1,7 @@
let gotValue = false;

let iterable = {
[Symbol.asyncIterator]() {
[Symbol.asyncIterator || "@@asyncIterator"]() {
return {
next: () => Promise.resolve({
get value() { gotValue = true },
Expand Down

0 comments on commit 0927c7e

Please sign in to comment.