Sign in
cobalt
/
cobalt
/
6f3fc44129ff775165447b31ee68e7cc0ca9dedd
/
.
/
src
/
third_party
/
devtools
/
node_modules
/
object-inspect
/
test
/
holes.js
blob: ae54de46cecccdf1ae8bff19461652a52376d400 [
file
] [
log
] [
blame
]
var
test
=
require
(
'tape'
);
var
inspect
=
require
(
'../'
);
var
xs
=
[
'a'
,
'b'
];
xs
[
5
]
=
'f'
;
xs
[
7
]
=
'j'
;
xs
[
8
]
=
'k'
;
test
(
'holes'
,
function
(
t
)
{
t
.
plan
(
1
);
t
.
equal
(
inspect
(
xs
),
"[ 'a', 'b', , , , 'f', , 'j', 'k' ]"
);
});