From 4b5ba6c8c64b2c2573516f9c8efb944ecd68ad3b Mon Sep 17 00:00:00 2001 From: Brian Donovan Date: Mon, 16 Mar 2015 08:40:32 -0700 Subject: [PATCH] Add a test for the this-spread fix in 976e8c1. Addresses #1033. --- .../transformation/es6-spread/this-context/actual.js | 6 ++++++ .../transformation/es6-spread/this-context/expected.js | 8 ++++++++ 2 files changed, 14 insertions(+) create mode 100644 test/fixtures/transformation/es6-spread/this-context/actual.js create mode 100644 test/fixtures/transformation/es6-spread/this-context/expected.js diff --git a/test/fixtures/transformation/es6-spread/this-context/actual.js b/test/fixtures/transformation/es6-spread/this-context/actual.js new file mode 100644 index 0000000000..9473736d36 --- /dev/null +++ b/test/fixtures/transformation/es6-spread/this-context/actual.js @@ -0,0 +1,6 @@ +var obj = { + foo: function foo() { + this.bar(...arguments) + this.blah(...arguments) + } +} diff --git a/test/fixtures/transformation/es6-spread/this-context/expected.js b/test/fixtures/transformation/es6-spread/this-context/expected.js new file mode 100644 index 0000000000..3a9d917b5a --- /dev/null +++ b/test/fixtures/transformation/es6-spread/this-context/expected.js @@ -0,0 +1,8 @@ +"use strict"; + +var obj = { + foo: function foo() { + this.bar.apply(this, arguments); + this.blah.apply(this, arguments); + } +};