You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
JS Crash: global type reference to constructor function #32997
Actual behavior:
assert from merging a symbol into itself. it looks like both the function () {} and SDK.SourceMap lhs of assignment get the prototype method in the binder.
Welp Wesley Wigham (@weswigham), looks like I found a reason I need caching in mergeJSSymbols; you'll often want to get the type and declaredType both from a symbol, and both code paths call mergeJSSymbols. We want to avoid double-merging any particular symbol into the combined symbol.
Activity
sandersn commentedon Aug 20, 2019
Looks like we don't cache correctly and try to merge into the same symbol twice.
sandersn commentedon Aug 20, 2019
Welp Wesley Wigham (@weswigham), looks like I found a reason I need caching in mergeJSSymbols; you'll often want to get the
typeanddeclaredTypeboth from a symbol, and both code paths call mergeJSSymbols. We want to avoid double-merging any particular symbol into the combined symbol.weswigham commentedon Aug 20, 2019
Thereeeeeeee we go. I figured there had to be a reason. XD
sandersn commentedon Aug 21, 2019
Also, bonus crash, if you leave out
compiledURLthen the cloned target doesn't get an empty map formembersand crashes in getIndexType.