Sign in
webkit
/
WebKit
/
8811b522c4d9fd9fbebc2e2caf8f1ebff78163f9
/
.
/
JSTests
/
es6
/
miscellaneous_subclassables_String_is_subclassable.js
blob: 9ad8354312df33adea272368539fe45fb9654898 [
file
] [
log
] [
blame
]
function
test
()
{
class
C extends
String
{}
var
c
=
new
C
(
"golly"
);
return
c instanceof
String
&&
c
+
''
===
"golly"
&&
c
[
0
]
===
"g"
&&
c
.
length
===
5
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);