Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ulixee
GitHub Repository: ulixee/secret-agent
Path: blob/main/plugins/default-browser-emulator/injected-scripts/Error.captureStackTrace.ts
1029 views
1
proxyFunction(self.Error, 'captureStackTrace', (target, thisArg, argArray) => {
2
if (argArray.length < 1) return target.apply(thisArg, argArray);
3
4
const [addToObject] = argArray;
5
const result = target.apply(thisArg, argArray);
6
cleanErrorStack(addToObject as any);
7
return result;
8
});
9
10