nodejs/deps/v8/test/mjsunit/regress/wasm/regress-crbug-1168386.js
Michaël Zasso 732ad99e47
deps: update V8 to 9.0.257.11
PR-URL: https://github.com/nodejs/node/pull/37587
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
2021-03-15 15:54:50 +01:00

27 lines
725 B
JavaScript

// Copyright 2021 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.
// Flags: --interrupt-budget=100
function __f_0(__v_8) {
var __v_9 = "mod_";
var __v_10 = eval(
'function Module(stdlib, foreign, heap) {\n' +
' "use asm";\n' +
' function ' + __v_9 + '(dividend) {\n' +
' dividend = dividend | 0;\n' +
' return ((dividend | 0) % ' + __v_8 + ') | 0;\n'
+ ' }\n' +
' return { f: ' + __v_9 + '}\n'
+ '}; Module');
return __v_10().f;
}
try {
const __v_5 = -1;
const __v_6 = __f_0(1);
for (var __v_7 = 0; __v_7 < 100; __v_7++) {
__v_7 % __v_5 | __v_6();
}
} catch (e) {}