Sign in
webkit
/
WebKit
/
1301b5dddcb28e452a3a8911596f68f5704bd0a8
/
.
/
JSTests
/
es6
/
function_name_property_object_methods_class.js
blob: 39e9809da27dbf126cb28764f0c0528551658f27 [
file
] [
log
] [
blame
]
function
test
()
{
var
o
=
{
foo
:
class
{},
bar
:
class
baz
{}};
o
.
qux
=
class
{};
return
o
.
foo
.
name
===
"foo"
&&
o
.
bar
.
name
===
"baz"
&&
o
.
qux
.
name
===
""
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);