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