Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
ion
/
bug1006885.js
blob: 20819433b3e461461e7593bbc2cd60ad0d23b83a [
file
] [
log
] [
blame
]
function
checkConstruct
(
thing
,
buggy
)
{
try
{
new
thing
();
}
catch
(
e
)
{}
}
var
boundFunctionPrototype
=
Function
.
prototype
.
bind
();
checkConstruct
(
boundFunctionPrototype
,
true
);
var
boundBuiltin
=
Math
.
sin
.
bind
();
checkConstruct
(
boundBuiltin
,
true
);