mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
322 B
TypeScript
17 lines
322 B
TypeScript
//// [tests/cases/conformance/es6/for-ofStatements/for-of43.ts] ////
|
|
|
|
//// [for-of43.ts]
|
|
var array = [{ x: "", y: 0 }]
|
|
for (var {x: a = "", y: b = true} of array) {
|
|
a;
|
|
b;
|
|
}
|
|
|
|
//// [for-of43.js]
|
|
"use strict";
|
|
var array = [{ x: "", y: 0 }];
|
|
for (var { x: a = "", y: b = true } of array) {
|
|
a;
|
|
b;
|
|
}
|