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