Sign in
webkit
/
WebKit
/
60c3f717a9141a0f8afd6e8437d26c6404e4424c
/
.
/
JSTests
/
stress
/
class-fields-function-name.js
blob: bf21f619876ef8d7734f1bcc1697f87ab9e99ee7 [
file
] [
log
] [
blame
]
function
assert
(
a
,
message
)
{
if
(!
a
)
throw
new
Error
(
message
);
}
class
A
{
foo
=
function
()
{
};
bar
=
class
{};
baz
=
"test"
;
}
var
a
=
new
A
();
assert
(
a
.
foo
.
name
==
"foo"
);
assert
(
a
.
bar
.
name
==
"bar"
);
assert
(
a
.
baz
.
name
==
undefined
);