-
-
Notifications
You must be signed in to change notification settings - Fork 477
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(transformer/arrow-functions): use
IndexMap
for super
get…
…ter/setters (#7317) Generate getter/setter declarations in same order as Babel by using `IndexMap` instead of `HashMap` to store `super` getter/setter method details.
- Loading branch information
1 parent
061207d
commit 3555cf9
Showing
2 changed files
with
17 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...ance/tests/babel-plugin-transform-async-to-generator/test/fixtures/super/assign/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
const Obj = { | ||
value: 0, | ||
method() { | ||
var _superprop_getObject = () => super.object, | ||
_superprop_set = (_prop, _value) => super[_prop] = _value, | ||
_superprop_setValue = _value2 => super.value = _value2; | ||
var _superprop_setValue = (_value) => (super.value = _value), | ||
_superprop_set = (_prop, _value2) => (super[_prop] = _value2), | ||
_superprop_getObject = () => super.object; | ||
return babelHelpers.asyncToGenerator(function* () { | ||
_superprop_setValue(true); | ||
() => { | ||
_superprop_set('value', true); | ||
_superprop_set("value", true); | ||
_superprop_getObject().value = true; | ||
}; | ||
})(); | ||
} | ||
}; | ||
}; |