Add descriptions to transformation/transformers/es3/property-literals

This commit is contained in:
James Kyle 2015-07-11 12:06:45 -07:00
parent d67ba39d1c
commit dce1a3548c

View File

@ -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 = {
/**
* [Please add a description.]
* Look for non-computed keys with names that are not valid identifiers.
* Turn them into literals.
*/
Property: {