Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
defaultvalue-toString-is-noncallable-object.js
blob: f0a30d11583e8fedade3a8e5a51d574700c13aee [
file
] [
log
] [
blame
]
var
obj
=
{
toString
:
{},
valueOf
:
function
()
{
return
"foopy"
;
}
};
for
(
var
i
=
0
;
i
<
25
;
i
++)
assertEq
(
String
(
obj
),
"foopy"
);