mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-16 07:30:02 -04:00
fix ggf
This commit is contained in:
parent
08ccb4f56e
commit
7adf76d37f
2 changed files with 48 additions and 37 deletions
|
@ -103,14 +103,14 @@ export default function (client: ScramjetClient, self: typeof globalThis) {
|
|||
return t;
|
||||
};
|
||||
|
||||
client.Proxy("Promise.prototype.catch", {
|
||||
apply(ctx) {
|
||||
ctx.args[0] = new Proxy(ctx.args[0], {
|
||||
apply(target, thisArg, argArray) {
|
||||
// console.warn("CAUGHT PROMISE REJECTION", argArray);
|
||||
Reflect.apply(target, thisArg, argArray);
|
||||
},
|
||||
});
|
||||
},
|
||||
});
|
||||
// client.Proxy("Promise.prototype.catch", {
|
||||
// apply(ctx) {
|
||||
// ctx.args[0] = new Proxy(ctx.args[0], {
|
||||
// apply(target, thisArg, argArray) {
|
||||
// // console.warn("CAUGHT PROMISE REJECTION", argArray);
|
||||
// Reflect.apply(target, thisArg, argArray);
|
||||
// },
|
||||
// });
|
||||
// },
|
||||
// });
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue