Skip to content

Commit 7bad0c7

Browse files
committed
wip
1 parent dfe014e commit 7bad0c7

File tree

1 file changed

+25
-25
lines changed
  • packages/svelte/src/internal/client/dom/blocks

1 file changed

+25
-25
lines changed

packages/svelte/src/internal/client/dom/blocks/boundary.js

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -32,31 +32,31 @@ import * as e from '../../../shared/errors.js';
3232
const ASYNC_INCREMENT = Symbol();
3333
const 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

Comments
 (0)