WebAssemby: builder doesn't do Memory section maximum correctly
authorjfbastien@apple.com <jfbastien@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 10 May 2017 18:22:31 +0000 (18:22 +0000)
committerjfbastien@apple.com <jfbastien@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 10 May 2017 18:22:31 +0000 (18:22 +0000)
commit7c9c020c2fa0d631948baa4919ec7ce6b23b093b
tree1296d19194dff2bd268bf41550f574d1d4b2f1d0
parent8ec364fc482e7b3bd353270a9ae49235562a4639
WebAssemby: builder doesn't do Memory section maximum correctly
https://bugs.webkit.org/show_bug.cgi?id=171931

Reviewed by Keith Miller.

* wasm/Builder.js:
(export.default.Builder.prototype._registerSectionBuilders.const.section.in.WASM.description.section.switch.section.case.string_appeared_here.this.section):
* wasm/Builder_WebAssemblyBinary.js:
(const.emitters.Memory):
* wasm/function-tests/memory-grow-invalid.js: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@216598 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JSTests/ChangeLog
JSTests/wasm/Builder.js
JSTests/wasm/Builder_WebAssemblyBinary.js
JSTests/wasm/function-tests/memory-grow-invalid.js [new file with mode: 0644]