Sign in
webkit
/
WebKit
/
18eafb7225658eb078fb4b435c7e6f4bc55edf7a
/
.
/
JSTests
/
stress
/
undefined-access-dictionary-then-proto-change.js
blob: 96fefa47d9227ce22a52fd3a25cd959ea1beda28 [
file
] [
log
] [
blame
]
function
foo
()
{
var
p
=
{};
var
o
=
{};
o
.
__proto__
=
p
;
var
result
;
for
(
var
i
=
0
;
i
<
100
;
++
i
)
{
result
=
o
.
f
;
if
(
i
==
50
)
p
.
f
=
42
;
}
return
result
;
}
var
result
=
foo
();
if
(
result
!=
42
)
throw
"Error: bad result: "
+
result
;