2018-01-09 15:36:42 +01:00

45 lines
554 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.f1 = f1;
exports.f2 = f2;
exports.f3 = f3;
exports.f4 = f4;
exports.y = exports.x = void 0;
let x = 0;
exports.x = x;
let y = 0;
exports.y = y;
function f1() {
({
x
} = {
x: 1
});
exports.x = x;
}
function f2() {
({
x,
y
} = {
x: 2,
y: 3
});
exports.x = x, exports.y = y;
}
function f3() {
[x, y, z] = [3, 4, 5];
exports.x = x, exports.y = y;
}
function f4() {
[x,, y] = [3, 4, 5];
exports.x = x, exports.y = y;
}