projects
/
platform
/
upstream
/
js.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 1.0.0
[platform/upstream/js.git]
/
js
/
src
/
jit-test
/
tests
/
basic
/
testIntUnderflow.js
1
function testIntUnderflow() {
2
// int32_min + 8
3
var ival = -2147483648 + 8;
4
for (var i = 0; i < 30; i++) {
5
ival -= 2;
6
}
7
return (ival > -2147483648);
8
}
9
assertEq(testIntUnderflow(), false);
10
checkStats({
11
recorderStarted: 2,
12
recorderAborted: 0,
13
traceCompleted: 2,
14
traceTriggered: 2,
15
});