Sign in
webkit
/
WebKit
/
5c46bef7ab98d4e8242fd1cdbd4a8339e4d4801f
/
.
/
JSTests
/
stress
/
class-fields-private-cached-bytecode.js
blob: d2a4f4354f897f11374087126046c6f1dfd3e7e9 [
file
] [
log
] [
blame
]
//@ runBytecodeCache("--usePrivateClassFields=true")
function
assert
(
a
,
e
)
{
if
(
a
!==
e
)
throw
new
Error
(
"Expected: "
+
e
+
" but got: "
+
a
);
}
class
C
{
#
f
=
3
;
method
()
{
return
this
.#
f
;
}
}
let c
=
new
C
();
assert
(
c
.
method
(),
3
);