Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions tests/baselines/reference/capturedParametersInInitializers2.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@ function foo2(y = class {[x] = x}, x = 1) {

//// [capturedParametersInInitializers2.js]
function foo(y, x) {
if (y === void 0) { y = (function () {
function class_1() {
}
class_1.c = x;
return class_1;
}()); }
if (y === void 0) { y = (_a = (function () {
function class_1() {
}
return class_1;
}()),
_a.c = x,
_a); }
if (x === void 0) { x = 1; }
y.c;
var _a;
}
function foo2(y, x) {
if (y === void 0) { y = (function () {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,14 @@ sourceFile:computedPropertyNamesSourceMap1_ES5.ts
>>> Object.defineProperty(C.prototype, "goodbye", {
1->^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^
3 > ^^^^^^^^^^^^^
4 > ^^^^^^^^^
3 > ^^^^^^^^^^^^^^^^^^^^^^
1->
>
2 > get
3 > [
4 > "goodbye"]
3 > ["goodbye"]
1->Emitted(7, 5) Source(5, 5) + SourceIndex(0)
2 >Emitted(7, 27) Source(5, 9) + SourceIndex(0)
3 >Emitted(7, 40) Source(5, 10) + SourceIndex(0)
4 >Emitted(7, 49) Source(5, 20) + SourceIndex(0)
3 >Emitted(7, 49) Source(5, 20) + SourceIndex(0)
---
>>> get: function () {
1 >^^^^^^^^^^^^^
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ sourceFile:computedPropertyNamesSourceMap1_ES6.ts
3 > ^^^^^^^
4 > ^
5 > ^^^^^->
1->class C {
1->class C {
>
2 > [
3 > "hello"
Expand All @@ -34,7 +34,7 @@ sourceFile:computedPropertyNamesSourceMap1_ES6.ts
1->^^^^^^^^
2 > ^^^^^^^^
3 > ^
1->() {
1->() {
>
2 > debugger
3 > ;
Expand All @@ -46,7 +46,7 @@ sourceFile:computedPropertyNamesSourceMap1_ES6.ts
1 >^^^^
2 > ^
3 > ^^^^^^^^^^^^^^^^^^^->
1 >
1 >
>
2 > }
1 >Emitted(4, 5) Source(4, 2) + SourceIndex(0)
Expand All @@ -58,7 +58,7 @@ sourceFile:computedPropertyNamesSourceMap1_ES6.ts
3 > ^
4 > ^^^^^^^^^
5 > ^
1->
1->
>
2 > get
3 > [
Expand All @@ -76,7 +76,7 @@ sourceFile:computedPropertyNamesSourceMap1_ES6.ts
3 > ^
4 > ^
5 > ^
1 >() {
1 >() {
>
2 > return
3 >
Expand All @@ -91,24 +91,17 @@ sourceFile:computedPropertyNamesSourceMap1_ES6.ts
>>> }
1 >^^^^
2 > ^
1 >
1 >
>
2 > }
1 >Emitted(7, 5) Source(7, 2) + SourceIndex(0)
2 >Emitted(7, 6) Source(7, 3) + SourceIndex(0)
---
>>>}
1 >
2 >^
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
>
2 >}
1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0)
2 >Emitted(8, 2) Source(8, 2) + SourceIndex(0)
1 >^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
>}
1 >Emitted(8, 2) Source(8, 2) + SourceIndex(0)
---
>>>//# sourceMappingURL=computedPropertyNamesSourceMap1_ES6.js.map1->
2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1->
1->Emitted(9, 1) Source(8, 2) + SourceIndex(0)
---
>>>//# sourceMappingURL=computedPropertyNamesSourceMap1_ES6.js.map
14 changes: 7 additions & 7 deletions tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -12,40 +12,34 @@ sourceFile:computedPropertyNamesSourceMap2_ES5.ts
1 >
2 >^^^^
3 > ^
4 > ^^^
5 > ^^^^^^^^^^^^^^^^^^^^^^^^->
4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
2 >var
3 > v
4 > =
1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0)
2 >Emitted(1, 5) Source(1, 5) + SourceIndex(0)
3 >Emitted(1, 6) Source(1, 6) + SourceIndex(0)
4 >Emitted(1, 9) Source(1, 9) + SourceIndex(0)
---
>>> _a["hello"] = function () {
1->^^^^
2 > ^^^
3 > ^^^^^^^
4 > ^
5 > ^^^
1->{
4 > ^^^^
1-> = {
>
2 > [
3 > "hello"
4 > ]
5 >
4 >
1->Emitted(2, 5) Source(2, 5) + SourceIndex(0)
2 >Emitted(2, 8) Source(2, 6) + SourceIndex(0)
3 >Emitted(2, 15) Source(2, 13) + SourceIndex(0)
4 >Emitted(2, 16) Source(2, 14) + SourceIndex(0)
5 >Emitted(2, 19) Source(2, 5) + SourceIndex(0)
4 >Emitted(2, 19) Source(2, 5) + SourceIndex(0)
---
>>> debugger;
1 >^^^^^^^^
2 > ^^^^^^^^
3 > ^
1 >["hello"]() {
1 >["hello"]() {
>
2 > debugger
3 > ;
Expand All @@ -57,23 +51,20 @@ sourceFile:computedPropertyNamesSourceMap2_ES5.ts
1 >^^^^
2 > ^
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
1 >
>
2 > }
1 >Emitted(4, 5) Source(4, 2) + SourceIndex(0)
2 >Emitted(4, 6) Source(4, 3) + SourceIndex(0)
---
>>> Object.defineProperty(_a, "goodbye", {
1->^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^
3 > ^^^^^^^^^
1->,
>
2 > get [
3 > "goodbye"]
1->Emitted(5, 5) Source(5, 5) + SourceIndex(0)
2 >Emitted(5, 31) Source(5, 10) + SourceIndex(0)
3 >Emitted(5, 40) Source(5, 20) + SourceIndex(0)
1->^^^^^^^^^^^^^^^^^^^^^^^^^^
2 > ^^^^^^^^^^^^^
1->,
> get
2 > ["goodbye"]
1->Emitted(5, 27) Source(5, 9) + SourceIndex(0)
2 >Emitted(5, 40) Source(5, 20) + SourceIndex(0)
---
>>> get: function () {
1 >^^^^^^^^^^^^^
Expand All @@ -87,7 +78,7 @@ sourceFile:computedPropertyNamesSourceMap2_ES5.ts
3 > ^
4 > ^
5 > ^
1->get ["goodbye"]() {
1->get ["goodbye"]() {
>
2 > return
3 >
Expand All @@ -103,7 +94,7 @@ sourceFile:computedPropertyNamesSourceMap2_ES5.ts
1 >^^^^^^^^
2 > ^
3 > ^^^^^^^^^^^^^^^^^->
1 >
1 >
>
2 > }
1 >Emitted(8, 9) Source(7, 2) + SourceIndex(0)
Expand All @@ -112,21 +103,14 @@ sourceFile:computedPropertyNamesSourceMap2_ES5.ts
>>> enumerable: true,
>>> configurable: true
>>> }),
1->^^^^^^
2 > ^->
1->
1->Emitted(11, 7) Source(7, 3) + SourceIndex(0)
---
>>> _a
>>>);
1->^
2 > ^
3 > ^^^^^^->
1->
>>> _a);
1->^^^^^^^
2 > ^
1->
>}
2 >
1->Emitted(13, 2) Source(8, 2) + SourceIndex(0)
2 >Emitted(13, 3) Source(8, 2) + SourceIndex(0)
2 >
1->Emitted(12, 8) Source(8, 2) + SourceIndex(0)
2 >Emitted(12, 9) Source(8, 2) + SourceIndex(0)
---
>>>var _a;
>>>//# sourceMappingURL=computedPropertyNamesSourceMap2_ES5.js.map
4 changes: 2 additions & 2 deletions tests/baselines/reference/declarationEmit_UnknownImport2.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//// [declarationEmit_UnknownImport2.ts]
import Foo From './Foo'; // Syntax error

import Foo From './Foo'; // Syntax error
export default Foo

//// [declarationEmit_UnknownImport2.js]
Expand Down
14 changes: 7 additions & 7 deletions tests/baselines/reference/defaultExportInAwaitExpression01.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
//// [tests/cases/conformance/es6/modules/defaultExportInAwaitExpression01.ts] ////

//// [a.ts]
const x = new Promise( ( resolve, reject ) => { resolve( {} ); } );
export default x;
const x = new Promise( ( resolve, reject ) => { resolve( {} ); } );
export default x;

//// [b.ts]
import x from './a';
( async function() {
const value = await x;
}() );
import x from './a';

( async function() {
const value = await x;
}() );


//// [a.js]
Expand Down
14 changes: 7 additions & 7 deletions tests/baselines/reference/defaultExportInAwaitExpression02.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
//// [tests/cases/conformance/es6/modules/defaultExportInAwaitExpression02.ts] ////

//// [a.ts]
const x = new Promise( ( resolve, reject ) => { resolve( {} ); } );
export default x;
const x = new Promise( ( resolve, reject ) => { resolve( {} ); } );
export default x;

//// [b.ts]
import x from './a';
( async function() {
const value = await x;
}() );
import x from './a';

( async function() {
const value = await x;
}() );


//// [a.js]
Expand Down
Loading