From 1af8ac8ccf2eb2d338f97742fbf8307de0460e55 Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Fri, 18 Nov 2016 10:32:22 -0800 Subject: [PATCH] Update es2017 library and baseline --- Jakefile.js | 1 + .../reference/asyncMethodWithSuper_es5.js | 98 +++++++++---------- 2 files changed, 50 insertions(+), 49 deletions(-) diff --git a/Jakefile.js b/Jakefile.js index 087bbb6751..777068c556 100644 --- a/Jakefile.js +++ b/Jakefile.js @@ -305,6 +305,7 @@ var es2017LibrarySource = [ "es2017.object.d.ts", "es2017.sharedmemory.d.ts", "es2017.string.d.ts", + "es2017.asynciterable.d.ts" ]; var es2017LibrarySourceMap = es2017LibrarySource.map(function (source) { diff --git a/tests/baselines/reference/asyncMethodWithSuper_es5.js b/tests/baselines/reference/asyncMethodWithSuper_es5.js index da9277cda7..235f2763f9 100644 --- a/tests/baselines/reference/asyncMethodWithSuper_es5.js +++ b/tests/baselines/reference/asyncMethodWithSuper_es5.js @@ -1,53 +1,53 @@ //// [asyncMethodWithSuper_es5.ts] -class A { - x() { - } -} - -class B extends A { - // async method with only call/get on 'super' does not require a binding - async simple() { - // call with property access - super.x(); - - // call with element access - super["x"](); - - // property access (read) - const a = super.x; - - // element access (read) - const b = super["x"]; - } - - // async method with assignment/destructuring on 'super' requires a binding - async advanced() { - const f = () => {}; - - // call with property access - super.x(); - - // call with element access - super["x"](); - - // property access (read) - const a = super.x; - - // element access (read) - const b = super["x"]; - - // property access (assign) - super.x = f; - - // element access (assign) - super["x"] = f; - - // destructuring assign with property access - ({ f: super.x } = { f }); - - // destructuring assign with element access - ({ f: super["x"] } = { f }); - } +class A { + x() { + } +} + +class B extends A { + // async method with only call/get on 'super' does not require a binding + async simple() { + // call with property access + super.x(); + + // call with element access + super["x"](); + + // property access (read) + const a = super.x; + + // element access (read) + const b = super["x"]; + } + + // async method with assignment/destructuring on 'super' requires a binding + async advanced() { + const f = () => {}; + + // call with property access + super.x(); + + // call with element access + super["x"](); + + // property access (read) + const a = super.x; + + // element access (read) + const b = super["x"]; + + // property access (assign) + super.x = f; + + // element access (assign) + super["x"] = f; + + // destructuring assign with property access + ({ f: super.x } = { f }); + + // destructuring assign with element access + ({ f: super["x"] } = { f }); + } } //// [asyncMethodWithSuper_es5.js]