Sign in
webkit
/
WebKit
/
4ba7fe936ef6ae9d62102c8eed5d38ba3f6d5cc4
/
.
/
JSTests
/
es6
/
destructuring_assignment_computed_property_simple.js
blob: 12dcc79c1532e101487a43032d82acfb68c0ba13 [
file
] [
log
] [
blame
]
function
test
()
{
var
result0
,
result1
,
i
=
0
;
({
[
i
++]:
result0
,
[
i
++]:
result1
}
=
[
"hungryhungry"
,
"hippos"
]);
return
result0
===
"hungryhungry"
&&
result1
===
"hippos"
&&
i
===
2
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);