Sign in
webkit
/
WebKit
/
c6951ff6f7d972427c05df8e7c39e3f2d74bf29c
/
.
/
JSTests
/
es6
/
function_name_property_variables_class.js
blob: c14de21d7d81c8e69a37436b4dbf66a87cf5e425 [
file
] [
log
] [
blame
]
function
test
()
{
var
foo
=
class
{};
var
bar
=
class
baz
{};
var
qux
=
class
{
static
name
()
{}
};
return
foo
.
name
===
"foo"
&&
bar
.
name
===
"baz"
&&
typeof
qux
.
name
===
"function"
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);