Sign in
webkit
/
WebKit
/
50cb9c4b14c811b31384dda73676cfb466c0b704
/
.
/
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"
);