mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 21:14:28 -08:00
WIP
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
export const patch_promise = window => {
|
||||
|
||||
// TODO check that it is not already patched
|
||||
if(window.Promise.Original != null) {
|
||||
throw new Error('already patched')
|
||||
// already patched
|
||||
return
|
||||
}
|
||||
|
||||
class PromiseWithStatus extends Promise {
|
||||
|
||||
Reference in New Issue
Block a user