Sign in
webkit
/
WebKit
/
49c45f529348e27f11122daecbee33e4fa730919
/
.
/
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"
);