Merge branch 'master' into code-generator

Conflicts:
	lib/6to5/transformers/classes.js
	test/fixtures/transformation/source-maps/class/expected.js
	test/fixtures/transformation/source-maps/class/source-mappings.json
This commit is contained in:
Sebastian McKenzie
2014-11-03 13:38:44 +11:00
14 changed files with 110 additions and 39 deletions

View File

@@ -1,7 +1,11 @@
"use strict";
var _classProps = function (child, staticProps, instanceProps) {
if (staticProps) Object.defineProperties(child, staticProps);
if (instanceProps) Object.defineProperties(child.prototype, instanceProps);
};
var Test = (function () {
var Test = function Test() {};
Object.defineProperties(Test.prototype, { bar: { get: function () {
_classProps(Test, null, { bar: { get: function () {
throw new Error("wow");
} } });
return Test;

View File

@@ -4,7 +4,7 @@
"column": 11
},
"generated": {
"line": 5,
"line": 9,
"column": 11
}
}]