Commit 879f659
Initialize internal fields in Factory::NewJSTypedArray and NewJSDataView.
This was causing array buffer views created by ValueDeserializer to have
uninitialized internal fields, which lead to crashes in layout tests when
Blink tried to read those fields.
For array buffers, JSArrayBuffer::Setup is responsible for this logic
(as well as initializing the V8 fields); this is similar to that.
The runtime already seems to correctly initialize these for script-created
array buffer views as well, which is why this issue was not detected sooner.
Review-Url: https://codereview.chromium.org/2498413002
Cr-Commit-Position: refs/heads/master@{#41014}1 parent e80cfa0 commit 879f659
2 files changed
+39
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2010 | 2010 | | |
2011 | 2011 | | |
2012 | 2012 | | |
| 2013 | + | |
| 2014 | + | |
| 2015 | + | |
| 2016 | + | |
| 2017 | + | |
| 2018 | + | |
2013 | 2019 | | |
2014 | 2020 | | |
2015 | 2021 | | |
| |||
2079 | 2085 | | |
2080 | 2086 | | |
2081 | 2087 | | |
| 2088 | + | |
| 2089 | + | |
| 2090 | + | |
| 2091 | + | |
| 2092 | + | |
2082 | 2093 | | |
2083 | 2094 | | |
2084 | 2095 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26156 | 26156 | | |
26157 | 26157 | | |
26158 | 26158 | | |
| 26159 | + | |
| 26160 | + | |
| 26161 | + | |
| 26162 | + | |
| 26163 | + | |
| 26164 | + | |
| 26165 | + | |
| 26166 | + | |
| 26167 | + | |
| 26168 | + | |
| 26169 | + | |
| 26170 | + | |
| 26171 | + | |
| 26172 | + | |
| 26173 | + | |
| 26174 | + | |
| 26175 | + | |
| 26176 | + | |
| 26177 | + | |
| 26178 | + | |
| 26179 | + | |
| 26180 | + | |
| 26181 | + | |
| 26182 | + | |
| 26183 | + | |
| 26184 | + | |
| 26185 | + | |
| 26186 | + | |
0 commit comments