Description[wasm] Do a proper HasProperty() check in the memory and table setup.
The WebAssembly spec requires a HasProperty() check for the maximum
property of the descriptor object which is used to set up a
WebAssembly.Memory object or a WebAssembly.Table object.
The original implementation only approximated the HasProperty() check.
It used Get() to get the value of the maximum property of the descriptor
object and compared the resulting value to {undefined}. However, this
approximation is incorrect if the property exists but its value is
{undefined}.
R=titzer@chromium.org, franzih@chromium.org
BUG=chromium:649461
TEST=mjsunit/wasm/memory
Committed: https://crrev.com/7bffaaac2c2d3c638475ade4adba60f1b01dd66f
Cr-Commit-Position: refs/heads/master@{#39722}
Patch Set 1 #
Total comments: 8
Patch Set 2 : Additional tests #Patch Set 3 : Added tests also to table.js #
Depends on Patchset: Messages
Total messages: 20 (12 generated)
|