regenerator-transform
Advanced tools
Comparing version 0.9.9 to 0.9.10
@@ -15,2 +15,6 @@ "use strict"; | ||
var _replaceShorthandObjectMethod = require("./replaceShorthandObjectMethod"); | ||
var _replaceShorthandObjectMethod2 = _interopRequireDefault(_replaceShorthandObjectMethod); | ||
var _util = require("./util"); | ||
@@ -24,12 +28,14 @@ | ||
var getMarkInfo = require("private").makeAccessor(); /** | ||
* Copyright (c) 2014, Facebook, Inc. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* https://raw.github.com/facebook/regenerator/master/LICENSE file. An | ||
* additional grant of patent rights can be found in the PATENTS file in | ||
* the same directory. | ||
*/ | ||
/** | ||
* Copyright (c) 2014, Facebook, Inc. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* https://raw.github.com/facebook/regenerator/master/LICENSE file. An | ||
* additional grant of patent rights can be found in the PATENTS file in | ||
* the same directory. | ||
*/ | ||
var getMarkInfo = require("private").makeAccessor(); | ||
exports.visitor = { | ||
@@ -56,2 +62,6 @@ Function: { | ||
// if this is an ObjectMethod, we need to convert it to an ObjectProperty | ||
path = (0, _replaceShorthandObjectMethod2.default)(path); | ||
node = path.node; | ||
var contextId = path.scope.generateUidIdentifier("context"); | ||
@@ -58,0 +68,0 @@ var argsId = path.scope.generateUidIdentifier("args"); |
@@ -5,3 +5,3 @@ { | ||
"description": "Explode async and generator functions into a state machine.", | ||
"version": "0.9.9", | ||
"version": "0.9.10", | ||
"main": "lib/index.js", | ||
@@ -8,0 +8,0 @@ "keywords": [ |
@@ -15,2 +15,3 @@ /** | ||
import { Emitter } from "./emit"; | ||
import replaceShorthandObjectMethod from "./replaceShorthandObjectMethod"; | ||
import * as util from "./util"; | ||
@@ -41,2 +42,6 @@ | ||
// if this is an ObjectMethod, we need to convert it to an ObjectProperty | ||
path = replaceShorthandObjectMethod(path); | ||
node = path.node; | ||
let contextId = path.scope.generateUidIdentifier("context"); | ||
@@ -43,0 +48,0 @@ let argsId = path.scope.generateUidIdentifier("args"); |
118531
19
3111