(resolve)
| 120 | const thenable = { |
| 121 | pings: [], |
| 122 | then(resolve) { |
| 123 | if (newRecord.status === 'pending') { |
| 124 | thenable.pings.push(resolve); |
| 125 | } else { |
| 126 | Promise.resolve().then(() => resolve(newRecord.value)); |
| 127 | } |
| 128 | }, |
| 129 | }; |
| 130 | |
| 131 | const newRecord = { |