Sign in
webkit
/
WebKit
/
939e9d9dca352ef0e519c767220f928dea5a0c13
/
.
/
JSTests
/
stress
/
class-fields-private-as-function.js
blob: 88a1163e167ed0d6c5f67656d01b34d88cb74f2f [
file
] [
log
] [
blame
]
//@ requireOptions("--usePrivateClassFields=1")
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
);