feature: vor und nachteile

This commit is contained in:
Hikyu
2026-05-31 13:54:31 +02:00
parent 552a947a1c
commit e3dad17446
23270 changed files with 3024794 additions and 200 deletions
+15
View File
@@ -0,0 +1,15 @@
// Even though the browser version is a no-op, we wrap it to ensure consistent behavior.
export default function functionTimeout(function_) {
const wrappedFunction = (...arguments_) => function_(...arguments_);
Object.defineProperty(wrappedFunction, 'name', {
value: `functionTimeout(${function_.name || '<anonymous>'})`,
configurable: true,
});
return wrappedFunction;
}
export function isTimeoutError() {
return false;
}