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
/
testThrowingObjectEqUndefined.js
1
function testThrowingObjectEqUndefined()
2
{
3
try
4
{
5
var obj = { toString: function() { throw 0; } };
6
for (var i = 0; i < 5; i++)
7
"" + (obj == undefined);
8
return i === 5;
9
}
10
catch (e)
11
{
12
return "" + e;
13
}
14
}
15
assertEq(testThrowingObjectEqUndefined(), true);
16
checkStats({
17
sideExitIntoInterpreter: 1
18
});