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