@@ -32,31 +32,31 @@ import * as e from '../../../shared/errors.js';
3232const ASYNC_INCREMENT = Symbol ( ) ;
3333const ASYNC_DECREMENT = Symbol ( ) ;
3434
35- const native_then = Promise . prototype . then ;
36-
37- // @ts -ignore
38- Promise . prototype . then = function (
39- /** @type {(value: any) => any } */ resolved ,
40- /** @type {(reason: any) => any } */ rejected
41- ) {
42- if ( active_reaction === null || ( active_reaction . f & IS_ASYNC ) === 0 ) {
43- return native_then . call ( this , resolved , rejected ) ;
44- }
45-
46- var restore = capture ( ) ;
47-
48- /** @param {any } value */
49- function wrapped_resolved ( value ) {
50- restore ( ) ;
51- try {
52- return resolved ( value ) ;
53- } finally {
54- exit ( ) ;
55- }
56- }
57-
58- return native_then . call ( this , wrapped_resolved , rejected ) ;
59- } ;
35+ // const native_then = Promise.prototype.then;
36+
37+ // // @ts -ignore
38+ // Promise.prototype.then = function (
39+ // /** @type {(value: any) => any } */ resolved,
40+ // /** @type {(reason: any) => any } */ rejected
41+ // ) {
42+ // if (active_reaction === null || (active_reaction.f & IS_ASYNC) === 0) {
43+ // return native_then.call(this, resolved, rejected);
44+ // }
45+
46+ // var restore = capture();
47+
48+ // /** @param {any } value */
49+ // function wrapped_resolved(value) {
50+ // restore();
51+ // try {
52+ // return resolved(value);
53+ // } finally {
54+ // exit();
55+ // }
56+ // }
57+
58+ // return native_then.call(this, wrapped_resolved, rejected);
59+ // };
6060
6161/**
6262 * @param {Effect } boundary
0 commit comments