Andrew Top | ef837fa | 2017-10-04 22:44:25 -0700 | [diff] [blame] | 1 | // Copyright 2017 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 | // Flags: --allow-natives-syntax | ||||
6 | |||||
7 | function Module(stdlib, imports, buffer) { | ||||
8 | "use asm"; | ||||
9 | function f() { | ||||
10 | return (281474976710655 * 1048575) | 0; | ||||
11 | } | ||||
12 | return { f:f }; | ||||
13 | } | ||||
14 | var m = Module(this); | ||||
15 | assertEquals(-1048576, m.f()); | ||||
16 | assertFalse(%IsAsmWasmCode(Module)); |