* test case for insertBefore for jsx * fix unshiftContainer and insertBefore * use path.scope.push * add test making sure computedKeys var declaration at the right block * add comment * nit [skip ci]
20 lines
262 B
JavaScript
20 lines
262 B
JavaScript
function test(x) {
|
|
var _x;
|
|
|
|
_x = x;
|
|
|
|
var F = function F() {
|
|
"use strict";
|
|
|
|
babelHelpers.classCallCheck(this, F);
|
|
this[_x] = 1;
|
|
};
|
|
|
|
x = 'deadbeef';
|
|
expect(new F().foo).toBe(1);
|
|
x = 'wrong';
|
|
expect(new F().foo).toBe(1);
|
|
}
|
|
|
|
test('foo');
|