🔎 Search Terms
Maximum call stack size exceeded
🕗 Version & Regression Information
- This is a crash
- This changed between versions 5.2.2 and 5.2.2_
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________
- I was unable to test this on prior versions because _______
⏯ Playground Link
No response
💻 Code
function test(fn) {
const composed = function (...args) {}
Object.defineProperty(composed, 'name', {
value: composed.fn + '_test'
})
return composed
}
and the compile with tsc
$ npx tsc test.js --allowJs --noEmit
Maximum call stack size exceeded
🙁 Actual behavior
stack trace:
RangeError: Maximum call stack size exceeded
at getTypeOfSymbol (C:\Users\Admin\gpm\192.168.0.254\group_name\project\node_modules\typescript\lib\typescript.js:54746:29)
at getExpandedParameters (C:\Users\Admin\gpm\192.168.0.254\group_name\project\node_modules\typescript\lib\typescript.js:55655:26)
at signatureToSignatureDeclarationHelper (C:\Users\Admin\gpm\192.168.0.254\group_name\project\node_modules\typescript\lib\typescript.js:50913:32)
at createTypeNodesFromResolvedType (C:\Users\Admin\gpm\192.168.0.254\group_name\project\node_modules\typescript\lib\typescript.js:50672:31)
at createTypeNodeFromObjectType (C:\Users\Admin\gpm\192.168.0.254\group_name\project\node_modules\typescript\lib\typescript.js:50504:27)
at visitAndTransformType (C:\Users\Admin\gpm\192.168.0.254\group_name\project\node_modules\typescript\lib\typescript.js:50440:26)
at createAnonymousTypeNode (C:\Users\Admin\gpm\192.168.0.254\group_name\project\node_modules\typescript\lib\typescript.js:50375:22)
at typeToTypeNodeWorker (C:\Users\Admin\gpm\192.168.0.254\group_name\project\node_modules\typescript\lib\typescript.js:50189:18)
at typeToTypeNodeHelper (C:\Users\Admin\gpm\192.168.0.254\group_name\project\node_modules\typescript\lib\typescript.js:49969:26)
at C:\Users\Admin\gpm\192.168.0.254\group_name\project\node_modules\typescript\lib\typescript.js:49904:136
🙂 Expected behavior
There should not error
Additional information about the issue
No response
🔎 Search Terms
Maximum call stack size exceeded🕗 Version & Regression Information
⏯ Playground Link
No response
💻 Code
and the compile with tsc
🙁 Actual behavior
🙂 Expected behavior
There should not error
Additional information about the issue
No response