Sign in
webkit
/
WebKit
/
2459939e8cc33aa793cfbafafc3ea7911bf42db7
/
.
/
JSTests
/
es6
/
Function_is_subclassable_Function.prototype.bind.js
blob: fce6c012c8676872d71e0a2b95b584e51eca246c [
file
] [
log
] [
blame
]
function
test
()
{
class
C extends
Function
{}
var
c
=
new
C
(
"x"
,
"y"
,
"return this.bar + x + y;"
).
bind
({
bar
:
1
},
2
);
return
c
(
6
)
===
9
&&
c instanceof C
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);