mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
23 lines
445 B
JavaScript
23 lines
445 B
JavaScript
class MyObject {
|
|
pAccessCount = 0;
|
|
get p() {
|
|
this.pAccessCount++;
|
|
return 0;
|
|
}
|
|
}
|
|
class MyArray {
|
|
length = 0;
|
|
*[Symbol.iterator]() {
|
|
this.length++;
|
|
yield;
|
|
this.length++;
|
|
yield new MyObject();
|
|
}
|
|
}
|
|
var arr = new MyArray();
|
|
var _arr = babelHelpers.toArray(arr),
|
|
_arr$ = _arr[1],
|
|
_ = _arr$.p,
|
|
rest1 = babelHelpers.objectWithoutProperties(_arr$, ["p"]),
|
|
rest2 = babelHelpers.arrayLikeToArray(_arr).slice(2);
|