Sign in
webkit
/
WebKit
/
ff4cb3c2323f3937e96e08f4f6fbe6c7755f9da5
/
.
/
JSTests
/
microbenchmarks
/
put-by-id.js
blob: 27b08a94b47cb0bd4f9895283cdc5e61fa5db096 [
file
] [
log
] [
blame
]
function
foo
(
o
)
{
o
.
f
=
42
;
}
function
bar
(
o
)
{
o
.
f
=
84
;
}
for
(
var
i
=
0
;
i
<
1000000
;
++
i
)
{
var
o
=
{};
foo
(
o
);
if
(
o
.
f
!=
42
)
throw
"Error: expected 42, got "
+
o
.
f
;
bar
(
o
)
if
(
o
.
f
!=
84
)
throw
"Error: expected 84, got "
+
o
.
f
;
}