Commit bc2fb21
committed
[1.4>master] [MERGE chakra-core#2249 @tcare] AutoRestoreFunctionInfo does not handle throw during initialization
Merge pull request chakra-core#2249 from tcare:redefer
Fixes OS 10106951.
Paul's recent change in chakra-core#2149 misses a case where we throw during creation of the new function body. We then assert because we did not restore the original function body.
Fixed by detecting the case where the function has not been parsed and we did not finish creating the new function body, using the ParsableFunctionInfo to restore the original state.1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2138 | 2138 | | |
2139 | 2139 | | |
2140 | 2140 | | |
2141 | | - | |
| 2141 | + | |
2142 | 2142 | | |
2143 | | - | |
| 2143 | + | |
2144 | 2144 | | |
2145 | 2145 | | |
2146 | 2146 | | |
2147 | 2147 | | |
2148 | 2148 | | |
2149 | | - | |
2150 | | - | |
| 2149 | + | |
| 2150 | + | |
2151 | 2151 | | |
2152 | 2152 | | |
2153 | | - | |
| 2153 | + | |
2154 | 2154 | | |
2155 | 2155 | | |
2156 | 2156 | | |
2157 | 2157 | | |
2158 | | - | |
| 2158 | + | |
2159 | 2159 | | |
2160 | 2160 | | |
2161 | 2161 | | |
| |||
0 commit comments