Sign in
webkit
/
WebKit
/
2ab9dfaee5c791e0d7b2c0893a55ced8677e2e2a
/
.
/
JSTests
/
es6
/
Object_static_methods_accept_primitives_Object.getOwnPropertyNames.js
blob: d244ca6488f0ddd634ddaed9d5bfa980af9877dc [
file
] [
log
] [
blame
]
function
test
()
{
var
s
=
Object
.
getOwnPropertyNames
(
'a'
);
return
s
.
length
===
2
&&
((
s
[
0
]
===
'length'
&&
s
[
1
]
===
'0'
)
||
(
s
[
0
]
===
'0'
&&
s
[
1
]
===
'length'
));
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);