Sign in
webkit
/
WebKit
/
b0d7f9b249dd6483d6c7bc4f13c440c0842b7127
/
.
/
JSTests
/
es6
/
class_constructor.js
blob: 3694b7217de59bef57247017838226e33b78a164 [
file
] [
log
] [
blame
]
function
test
()
{
class
C
{
constructor
()
{
this
.
x
=
1
;
}
}
return
C
.
prototype
.
constructor
===
C
&&
new
C
().
x
===
1
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);