Sign in
webkit
/
WebKit
/
2ab9dfaee5c791e0d7b2c0893a55ced8677e2e2a
/
.
/
JSTests
/
es6
/
Function_is_subclassable_can_be_called.js
blob: d662d77cb7c22a217afeaae7cd70049b996d8637 [
file
] [
log
] [
blame
]
function
test
()
{
class
C extends
Function
{}
var
c
=
new
C
(
"return 'foo';"
);
return
c
()
===
'foo'
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);