Add descriptions to transformation/transformers/es3/property-literals
This commit is contained in:
parent
d67ba39d1c
commit
dce1a3548c
@ -5,13 +5,30 @@ export var metadata = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* [Please add a description.]
|
* Turn reserved word properties into literals.
|
||||||
|
*
|
||||||
|
* **In**
|
||||||
|
*
|
||||||
|
* ```javascript
|
||||||
|
* var foo = {
|
||||||
|
* catch: function () {}
|
||||||
|
* };
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
* **Out**
|
||||||
|
*
|
||||||
|
* ```javascript
|
||||||
|
* var foo = {
|
||||||
|
* "catch": function () {}
|
||||||
|
* };
|
||||||
|
* ```
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export var visitor = {
|
export var visitor = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* [Please add a description.]
|
* Look for non-computed keys with names that are not valid identifiers.
|
||||||
|
* Turn them into literals.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Property: {
|
Property: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user