Sign in
webkit
/
WebKit
/
7c2d2b06cff0bde1c85f11402729e2b90317522d
/
.
/
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
);