From b1f0ecf244e716dcce9e4de18092459542db3179 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Wed, 4 Feb 2015 10:03:57 +1100 Subject: [PATCH] update class super constructor inheritance tests --- .../super-class-id-member-expression/expected.js | 6 +++--- .../transformation/es6-classes/super-class/expected.js | 4 ++-- .../transformation/spec-proto-to-assign/class/expected.js | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/fixtures/transformation/es6-classes/super-class-id-member-expression/expected.js b/test/fixtures/transformation/es6-classes/super-class-id-member-expression/expected.js index 9230f0395d..70caacde0a 100644 --- a/test/fixtures/transformation/es6-classes/super-class-id-member-expression/expected.js +++ b/test/fixtures/transformation/es6-classes/super-class-id-member-expression/expected.js @@ -9,7 +9,7 @@ var BaseController = (function (_Chaplin$Controller) { _classCallCheck(this, BaseController); if (Object.getPrototypeOf(BaseController) !== null) { - Object.getPrototypeOf(BaseController).apply(instance, arguments); + Object.getPrototypeOf(BaseController).apply(this, arguments); } } @@ -23,11 +23,11 @@ var BaseController2 = (function (_Chaplin$Controller$Another) { _classCallCheck(this, BaseController2); if (Object.getPrototypeOf(BaseController2) !== null) { - Object.getPrototypeOf(BaseController2).apply(instance, arguments); + Object.getPrototypeOf(BaseController2).apply(this, arguments); } } _inherits(BaseController2, _Chaplin$Controller$Another); return BaseController2; -})(Chaplin.Controller.Another); \ No newline at end of file +})(Chaplin.Controller.Another); diff --git a/test/fixtures/transformation/es6-classes/super-class/expected.js b/test/fixtures/transformation/es6-classes/super-class/expected.js index 2505a6b3c3..aec7b613ab 100644 --- a/test/fixtures/transformation/es6-classes/super-class/expected.js +++ b/test/fixtures/transformation/es6-classes/super-class/expected.js @@ -9,11 +9,11 @@ var Test = (function (Foo) { _classCallCheck(this, Test); if (Object.getPrototypeOf(Test) !== null) { - Object.getPrototypeOf(Test).apply(instance, arguments); + Object.getPrototypeOf(Test).apply(this, arguments); } } _inherits(Test, Foo); return Test; -})(Foo); \ No newline at end of file +})(Foo); diff --git a/test/fixtures/transformation/spec-proto-to-assign/class/expected.js b/test/fixtures/transformation/spec-proto-to-assign/class/expected.js index 4221646b33..22b7ef21ef 100644 --- a/test/fixtures/transformation/spec-proto-to-assign/class/expected.js +++ b/test/fixtures/transformation/spec-proto-to-assign/class/expected.js @@ -11,11 +11,11 @@ var Foo = (function (Bar) { _classCallCheck(this, Foo); if (Object.getPrototypeOf(Foo) !== null) { - Object.getPrototypeOf(Foo).apply(instance, arguments); + Object.getPrototypeOf(Foo).apply(this, arguments); } } _inherits(Foo, Bar); return Foo; -})(Bar); \ No newline at end of file +})(Bar);