diff options
Diffstat (limited to 'deps/v8/test/mjsunit/asm/regress-1013920.js')
-rw-r--r-- | deps/v8/test/mjsunit/asm/regress-1013920.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/deps/v8/test/mjsunit/asm/regress-1013920.js b/deps/v8/test/mjsunit/asm/regress-1013920.js new file mode 100644 index 0000000000..f7a2e57d1d --- /dev/null +++ b/deps/v8/test/mjsunit/asm/regress-1013920.js @@ -0,0 +1,17 @@ +// Copyright 2019 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +function asm(stdlib, foreign, heap) { + "use asm"; + var heap32 = new stdlib.Uint32Array(heap); + function f() { return 0; } + return {f : f}; +} + +var heap = Reflect.construct( + SharedArrayBuffer, + [1024 * 1024], + ArrayBuffer.prototype.constructor); + +asm(this, {}, heap); |