Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
testConstructorArgs-1.js
blob: 46b6c4e08a80ae3fa1707c4630cb93d946108b45 [
file
] [
log
] [
blame
]
function
f
(
a
,
b
)
{
this
.
a
=
a
;
assertEq
(
b
,
'x'
);
}
for
(
var
x
=
0
;
x
<
9
;
++
x
)
{
f
.
prototype
=
{};
var
obj
=
new
f
(
x
,
'x'
);
assertEq
(
obj
.
a
,
x
);
assertEq
(
Object
.
getPrototypeOf
(
obj
),
f
.
prototype
);
}