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