diff --git a/lib/6to5/transformers/classes.js b/lib/6to5/transformers/classes.js index 9059f54ed5..09e6aa16de 100644 --- a/lib/6to5/transformers/classes.js +++ b/lib/6to5/transformers/classes.js @@ -102,7 +102,7 @@ var buildClassBody = function (body, className, superName, node) { if (kind === "") { kind = "value"; - util.pushMutatorMap(mutatorMap, methodName, "writeable", b.identifier("true")); + util.pushMutatorMap(mutatorMap, methodName, "writable", b.identifier("true")); } util.pushMutatorMap(mutatorMap, methodName, kind, node); diff --git a/test/fixtures/syntax/classes/accessing-super-class/expected.js b/test/fixtures/syntax/classes/accessing-super-class/expected.js index 5535b50c4a..797739f07c 100644 --- a/test/fixtures/syntax/classes/accessing-super-class/expected.js +++ b/test/fixtures/syntax/classes/accessing-super-class/expected.js @@ -27,7 +27,7 @@ var Test = function(Foo) { Object.defineProperties(Test.prototype, { test: { - writeable: true, + writable: true, value: function() { Foo.prototype.test.call(this); @@ -43,7 +43,7 @@ var Test = function(Foo) { Object.defineProperties(Test, { foo: { - writeable: true, + writable: true, value: function() { Foo.foo.call(this); diff --git a/test/fixtures/syntax/classes/calling-super-properties/expected.js b/test/fixtures/syntax/classes/calling-super-properties/expected.js index 1bd9713d8f..a509647767 100644 --- a/test/fixtures/syntax/classes/calling-super-properties/expected.js +++ b/test/fixtures/syntax/classes/calling-super-properties/expected.js @@ -14,7 +14,7 @@ var Test = function(Foo) { Test.__proto__ = Foo; Object.defineProperties(Test, { test: { - writeable: true, + writable: true, value: function() { return Foo.wow.call(this); diff --git a/test/fixtures/syntax/classes/instance-method/expected.js b/test/fixtures/syntax/classes/instance-method/expected.js index be895733ce..2bccbfb4ab 100644 --- a/test/fixtures/syntax/classes/instance-method/expected.js +++ b/test/fixtures/syntax/classes/instance-method/expected.js @@ -2,7 +2,7 @@ var Test = function () { var Test = function Test() { }; Object.defineProperties(Test.prototype, { test: { - writeable: true, + writable: true, value: function () { return 5 + 5; } diff --git a/test/fixtures/syntax/classes/static/expected.js b/test/fixtures/syntax/classes/static/expected.js index 2d08f0f4c9..e41390aeb8 100644 --- a/test/fixtures/syntax/classes/static/expected.js +++ b/test/fixtures/syntax/classes/static/expected.js @@ -3,7 +3,7 @@ var A = function() { Object.defineProperties(A, { a: { - writeable: true, + writable: true, value: function() {} },