Sign in
webkit
/
WebKit
/
ba185f33ea04d42647d419285be42e2f7c244fee
/
.
/
JSTests
/
es6
/
function_name_property_isnt_writable_is_configurable.js
blob: 778e21c9f910cb9c4cc86f119fe08a9a794ca574 [
file
] [
log
] [
blame
]
function
test
()
{
var
descriptor
=
Object
.
getOwnPropertyDescriptor
(
function
f
(){},
"name"
);
return
descriptor
.
enumerable
===
false
&&
descriptor
.
writable
===
false
&&
descriptor
.
configurable
===
true
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);