Andrew Top | 63c7ad4 | 2019-11-25 16:10:13 -0800 | [diff] [blame] | 1 | // Copyright 2018 the V8 project authors. All rights reserved. |
2 | // Use of this source code is governed by a BSD-style license that can be | ||||
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | PAGES = 10; | ||||
6 | memory = new WebAssembly.Memory({initial: PAGES}); | ||||
7 | buffer = memory.buffer; | ||||
8 | memory.grow(0); | ||||
9 | WebAssembly.validate(buffer); |