Sign in
webkit
/
WebKit
/
49c45f529348e27f11122daecbee33e4fa730919
/
.
/
JSTests
/
stress
/
class-fields-private-use-eval.js
blob: 8d4d2ea2ea0dda6d6844bdc5a53caf7c7db416de [
file
] [
log
] [
blame
]
function
assert
(
a
,
message
)
{
if
(!
a
)
throw
new
Error
(
message
);
}
let inst
=
new
class
{
a
=
eval
(
"(i) => i.#b"
);
#
b
=
{};
};
inst
.
a
(
inst
).
x
=
1
;
assert
(
inst
.
a
(
inst
).
x
==
1
);