Sign in
webkit
/
WebKit
/
fff5469af9e21121a01bc52b64d66a2e93b51665
/
.
/
JSTests
/
es6
/
Reflect_Reflect.defineProperty.js
blob: c25e37fa9683da3aec433cc30341e17398157cd0 [
file
] [
log
] [
blame
]
function
test
()
{
var
obj
=
{};
Reflect
.
defineProperty
(
obj
,
"foo"
,
{
value
:
123
});
return
obj
.
foo
===
123
&&
Reflect
.
defineProperty
(
Object
.
freeze
({}),
"foo"
,
{
value
:
123
})
===
false
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);