Sign in
webkit
/
WebKit
/
18eafb7225658eb078fb4b435c7e6f4bc55edf7a
/
.
/
JSTests
/
stress
/
class-fields-private-as-function.js
blob: c68ab2cdc2c05b9ed64a46778131383aad09d38d [
file
] [
log
] [
blame
]
function
assert
(
a
,
e
)
{
if
(
a
!==
e
)
throw
new
Error
(
"Expected: "
+
e
+
" but got: "
+
a
);
}
class
C
{
#
m
=
()
=>
25
;
method
()
{
return
this
.#
m
();
}
}
let c
=
new
C
();
assert
(
c
.
method
(),
25
);