Sign in
webkit
/
WebKit
/
4607ef70b24b852e8d4bdab2b8233fa12bf018e4
/
.
/
JSTests
/
es6
/
function_name_property_class_prototype_methods.js
blob: 31142231fc6f99b5abb104a095dc6da6008d6392 [
file
] [
log
] [
blame
]
function
test
()
{
class
C
{
foo
(){}
};
return
(
new
C
).
foo
.
name
===
"foo"
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);