Sign in
webkit
/
WebKit
/
d280ac46bf530a689d06adb369a3cda97588d7f3
/
.
/
JSTests
/
stress
/
class-fields-bytecode-cache.js
blob: 1d4fcfa07cbfbf036c743e0176ad035b59e0732b [
file
] [
log
] [
blame
]
//@ runBytecodeCache("--useClassFields=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
);