<p dir="auto">no-undef error after today's babel update</p>
<blockquote>
<p dir="auto">Issue originally made by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jrwebdev/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jrwebdev">@jrwebdev</a></p>
</blockquote>
<h3 dir="auto">Bug information</h3>
<ul dir="auto">
<li><strong>Babel version:</strong> 6.6.0</li>
<li><strong>Node version:</strong> 4.2.4</li>
<li><strong>npm version:</strong> 3.6.0</li>
</ul>
<h3 dir="auto">Options</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Appears to be an issue with babel-preset-es2015@6.6.0

babel input.js --presets es2015 -o output.js"><pre class="notranslate"><code class="notranslate">Appears to be an issue with babel-preset-es2015@6.6.0

babel input.js --presets es2015 -o output.js
</code></pre></div>
<h3 dir="auto">Input code</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const values = {};
const obj = {
    set a (a) {
        values.a = a;       
    },
    get a () {
        return values.a;
    },
    set b (b) {
        values.b = b;
    },
    get b () {
        return values.b;
    }
};"><pre class="notranslate"><code class="notranslate">const values = {};
const obj = {
    set a (a) {
        values.a = a;       
    },
    get a () {
        return values.a;
    },
    set b (b) {
        values.b = b;
    },
    get b () {
        return values.b;
    }
};
</code></pre></div>
<h3 dir="auto">Description</h3>
<p dir="auto">Transpiled code differs between babel-preset-es2015@6.5.0 and babel-preset-es2015@6.6.0</p>
<p dir="auto">babel-preset-es2015@6.5.0</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="'use strict';

var values = {};
var obj = {
    set a(a) {
        values.a = a;
    },
    get a() {
        return values.a;
    },
    set b(b) {
        values.b = b;
    },
    get b() {
        return values.b;
    }
};"><pre class="notranslate"><code class="notranslate">'use strict';

var values = {};
var obj = {
    set a(a) {
        values.a = a;
    },
    get a() {
        return values.a;
    },
    set b(b) {
        values.b = b;
    },
    get b() {
        return values.b;
    }
};
</code></pre></div>
<p dir="auto">babel-preset-es2015@6.6.0</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="'use strict';

var _a, _b, _b2, _obj, _mutatorMap;

function _defineEnumerableProperties(obj, descs) { for (var key in descs) { var desc = descs[key]; desc.configurable = desc.enumerable = true; if (&quot;value&quot; in desc) desc.writable = true; Object.defineProperty(obj, key, desc); } return obj; }

var values = {};
var obj = (_obj = {
    set a(a) {
        values.a = a;
    }
}, _a = 'a', _mutatorMap = {}, _mutatorMap[_a] = _mutatorMap[_a] || {}, _mutatorMap[_a].get = function () {
    return values.a;
}, _b = b, _mutatorMap[_b] = _mutatorMap[_b] || {}, _mutatorMap[_b].set = function (b) {
    values.b = b;
}, _b2 = 'b', _mutatorMap[_b2] = _mutatorMap[_b2] || {}, _mutatorMap[_b2].get = function () {
    return values.b;
}, _defineEnumerableProperties(_obj, _mutatorMap), _obj);"><pre class="notranslate"><code class="notranslate">'use strict';

var _a, _b, _b2, _obj, _mutatorMap;

function _defineEnumerableProperties(obj, descs) { for (var key in descs) { var desc = descs[key]; desc.configurable = desc.enumerable = true; if ("value" in desc) desc.writable = true; Object.defineProperty(obj, key, desc); } return obj; }

var values = {};
var obj = (_obj = {
    set a(a) {
        values.a = a;
    }
}, _a = 'a', _mutatorMap = {}, _mutatorMap[_a] = _mutatorMap[_a] || {}, _mutatorMap[_a].get = function () {
    return values.a;
}, _b = b, _mutatorMap[_b] = _mutatorMap[_b] || {}, _mutatorMap[_b].set = function (b) {
    values.b = b;
}, _b2 = 'b', _mutatorMap[_b2] = _mutatorMap[_b2] || {}, _mutatorMap[_b2].get = function () {
    return values.b;
}, _defineEnumerableProperties(_obj, _mutatorMap), _obj);
</code></pre></div>
<p dir="auto">Error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="node output.js 
/output.js:14
}, _b = b, _mutatorMap[_b] = _mutatorMap[_b] || {}, _mutatorMap[_b].set = function (b) {
        ^

ReferenceError: b is not defined"><pre class="notranslate"><code class="notranslate">node output.js 
/output.js:14
}, _b = b, _mutatorMap[_b] = _mutatorMap[_b] || {}, _mutatorMap[_b].set = function (b) {
        ^

ReferenceError: b is not defined
</code></pre></div>
<p dir="auto">Only seems to occur if the object has more than one getter/setter. I'm guessing it's related to this PR - <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="127357151" data-permission-text="Title is private" data-url="https://github.com/babel/babel/issues/3280" data-hovercard-type="pull_request" data-hovercard-url="/babel/babel/pull/3280/hovercard" href="https://github.com/babel/babel/pull/3280">#3280</a></p>