Files
babel/packages/babel-plugin-proposal-class-properties/test/fixtures/public/instance-computed/output.js
2018-04-15 01:03:47 -04:00

18 lines
283 B
JavaScript

function test(x) {
var _x = x;
var F = function F() {
"use strict";
babelHelpers.classCallCheck(this, F);
babelHelpers.defineProperty(this, _x, 1);
};
x = 'deadbeef';
expect(new F().foo).toBe(1);
x = 'wrong';
expect(new F().foo).toBe(1);
}
test('foo');