Sign in
webkit
/
WebKit
/
f55c8d5a229dd3a052f61f168a5038f0e11b4fff
/
.
/
JSTests
/
es6
/
Function_is_subclassable_Function.prototype.call.js
blob: 77ed438114374cfc682ec867b093b3a469a28d6d [
file
] [
log
] [
blame
]
function
test
()
{
class
C extends
Function
{}
var
c
=
new
C
(
"x"
,
"return this.bar + x;"
);
return
c
.
call
({
bar
:
1
},
2
)
===
3
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);