Sign in
webkit
/
WebKit
/
2ab9dfaee5c791e0d7b2c0893a55ced8677e2e2a
/
.
/
JSTests
/
es6
/
Reflect_Reflect.ownKeys_string_keys.js
blob: c055ebb32324068f404ba4c6617152234ea56f74 [
file
] [
log
] [
blame
]
function
test
()
{
var
obj
=
Object
.
create
({
C
:
true
});
obj
.
A
=
true
;
Object
.
defineProperty
(
obj
,
'B'
,
{
value
:
true
,
enumerable
:
false
});
return
Reflect
.
ownKeys
(
obj
).
sort
()
+
''
===
"A,B"
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);