Sign in
webkit
/
WebKit
/
8e29b3d7cb791dc7cac89a3f1ad250bef2d6f1cb
/
.
/
JSTests
/
stress
/
class-fields-bytecode-cache.js
blob: 89decd8377228315ecd99af102a9fc917733ffa8 [
file
] [
log
] [
blame
]
//@ runBytecodeCache("--usePublicClassFields=true")
function
assert
(
a
,
e
)
{
if
(
a
!==
e
)
throw
new
Erro
(
"Expected: "
+
e
+
" but got: "
+
a
);
}
class
C
{
foo
()
{
return
this
.
f
;
}
f
=
15
;
}
let c
=
new
C
();
let r
=
c
.
foo
();
assert
(
r
,
15
);