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
[MERGE #6227@zenparsing] Do not attempt to reuse Utf8SourceInfo if asmjs parse fails
Merge pull request #6227 from zenparsing:asm-error-utf8source-2
Fixes#6222
When an asmjs parse fails, we reparse with asmjs disabled. However, currently we are reusing the same Utf8SourceInfo data, which contains a dictionary of FunctionBody objects. FunctionBody objects that were added in the first parse are still present in the source info dictionary. This causes an assert to fire in `DebugContext.cpp` because it expects there to be only one FunctionBody per source code function.
This PR simply discards the old Utf8SourceInfo when an asmjs parse fails. The downside is that the source data has to be re-memcpyd. Another (more complex) solution would be to try to fully clear out the existing Utf8SourceInfo.
0 commit comments