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
/
testWhileObjectOrNull.js
1
function testWhileObjectOrNull()
2
{
3
try
4
{
5
for (var i = 0; i < 3; i++)
6
{
7
var o = { p: { p: null } };
8
while (o.p)
9
o = o.p;
10
}
11
return "pass";
12
}
13
catch (e)
14
{
15
return "threw exception: " + e;
16
}
17
}
18
assertEq(testWhileObjectOrNull(), "pass");