Sign in
webkit
/
WebKit
/
8438b3acecf76ebd57885118ed5c8bdf9f2fc05e
/
.
/
JSTests
/
es6
/
Function_is_subclassable_can_be_called.js
blob: d662d77cb7c22a217afeaae7cd70049b996d8637 [
file
] [
log
] [
blame
]
ggaren@apple.com
961dc37
2015-09-04 02:39:20 +0000
[
diff
] [
blame
]
1
function
test
()
{
2
3
class
C extends
Function
{}
4
var
c
=
new
C
(
"return 'foo';"
);
5
return
c
()
===
'foo'
;
6
7
}
8
9
if
(!
test
())
10
throw
new
Error
(
"Test failed"
);
11