Sign in
webkit
/
WebKit
/
9f9c15eb6fdc193d77c7e606d643d4b8ec49399b
/
.
/
JSTests
/
es6
/
miscellaneous_subclassables_Number_is_subclassable.js
blob: f610a8eddc1ed5489abf2ff1135176c12414dc8f [
file
] [
log
] [
blame
]
function
test
()
{
class
C extends
Number
{}
var
c
=
new
C
(
6
);
return
c instanceof
Number
&&
+
c
===
6
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);