-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(es): Use typescript test suite as a golden testing (#2456)
- Loading branch information
Showing
6,663 changed files
with
251,177 additions
and
16 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...cArrowFunction/arrowFunctionWithParameterNameAsync_es2017/input.ts/es5.1.normal/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// @target: ES5 | ||
// @noEmitHelpers: true | ||
var x = function(async) { | ||
return async; | ||
}; |
Empty file.
44 changes: 44 additions & 0 deletions
44
...ync/es2017/asyncArrowFunction/asyncArrowFunction10_es2017/input.ts/es5.1.normal/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import regeneratorRuntime from "regenerator-runtime"; | ||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { | ||
try { | ||
var info = gen[key](arg); | ||
var value = info.value; | ||
} catch (error) { | ||
reject(error); | ||
return; | ||
} | ||
if (info.done) { | ||
resolve(value); | ||
} else { | ||
Promise.resolve(value).then(_next, _throw); | ||
} | ||
} | ||
function _asyncToGenerator(fn) { | ||
return function() { | ||
var self = this, args = arguments; | ||
return new Promise(function(resolve, reject) { | ||
var gen = fn.apply(self, args); | ||
function _next(value) { | ||
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); | ||
} | ||
function _throw(err) { | ||
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); | ||
} | ||
_next(undefined); | ||
}); | ||
}; | ||
} | ||
// @target: es2017 | ||
// @noEmitHelpers: true | ||
var foo = _asyncToGenerator(regeneratorRuntime.mark(function _callee() { | ||
var v; | ||
return regeneratorRuntime.wrap(function _callee$(_ctx) { | ||
while(1)switch(_ctx.prev = _ctx.next){ | ||
case 0: | ||
; | ||
case 1: | ||
case "end": | ||
return _ctx.stop(); | ||
} | ||
}, _callee); | ||
})); |
34 changes: 34 additions & 0 deletions
34
...c/es2017/asyncArrowFunction/asyncArrowFunction10_es2017/input.ts/es5.2.minified/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import regeneratorRuntime from "regenerator-runtime"; | ||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { | ||
try { | ||
var info = gen[key](arg), value = info.value; | ||
} catch (error) { | ||
reject(error); | ||
return; | ||
} | ||
info.done ? resolve(value) : Promise.resolve(value).then(_next, _throw); | ||
} | ||
!function(fn) { | ||
return function() { | ||
var self = this, args = arguments; | ||
return new Promise(function(resolve, reject) { | ||
var gen = fn.apply(self, args); | ||
function _next(value) { | ||
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); | ||
} | ||
function _throw(err) { | ||
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); | ||
} | ||
_next(void 0); | ||
}); | ||
}; | ||
}(regeneratorRuntime.mark(function _callee() { | ||
return regeneratorRuntime.wrap(function(_ctx) { | ||
for(;;)switch(_ctx.prev = _ctx.next){ | ||
case 0: | ||
case 1: | ||
case "end": | ||
return _ctx.stop(); | ||
} | ||
}, _callee); | ||
})); |
41 changes: 41 additions & 0 deletions
41
...sync/es2017/asyncArrowFunction/asyncArrowFunction1_es2017/input.ts/es5.1.normal/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import regeneratorRuntime from "regenerator-runtime"; | ||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { | ||
try { | ||
var info = gen[key](arg); | ||
var value = info.value; | ||
} catch (error) { | ||
reject(error); | ||
return; | ||
} | ||
if (info.done) { | ||
resolve(value); | ||
} else { | ||
Promise.resolve(value).then(_next, _throw); | ||
} | ||
} | ||
function _asyncToGenerator(fn) { | ||
return function() { | ||
var self = this, args = arguments; | ||
return new Promise(function(resolve, reject) { | ||
var gen = fn.apply(self, args); | ||
function _next(value) { | ||
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); | ||
} | ||
function _throw(err) { | ||
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); | ||
} | ||
_next(undefined); | ||
}); | ||
}; | ||
} | ||
// @target: es2017 | ||
// @noEmitHelpers: true | ||
var foo = _asyncToGenerator(regeneratorRuntime.mark(function _callee() { | ||
return regeneratorRuntime.wrap(function _callee$(_ctx) { | ||
while(1)switch(_ctx.prev = _ctx.next){ | ||
case 0: | ||
case "end": | ||
return _ctx.stop(); | ||
} | ||
}, _callee); | ||
})); |
33 changes: 33 additions & 0 deletions
33
...nc/es2017/asyncArrowFunction/asyncArrowFunction1_es2017/input.ts/es5.2.minified/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import regeneratorRuntime from "regenerator-runtime"; | ||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { | ||
try { | ||
var info = gen[key](arg), value = info.value; | ||
} catch (error) { | ||
reject(error); | ||
return; | ||
} | ||
info.done ? resolve(value) : Promise.resolve(value).then(_next, _throw); | ||
} | ||
!function(fn) { | ||
return function() { | ||
var self = this, args = arguments; | ||
return new Promise(function(resolve, reject) { | ||
var gen = fn.apply(self, args); | ||
function _next(value) { | ||
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); | ||
} | ||
function _throw(err) { | ||
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); | ||
} | ||
_next(void 0); | ||
}); | ||
}; | ||
}(regeneratorRuntime.mark(function _callee() { | ||
return regeneratorRuntime.wrap(function(_ctx) { | ||
for(;;)switch(_ctx.prev = _ctx.next){ | ||
case 0: | ||
case "end": | ||
return _ctx.stop(); | ||
} | ||
}, _callee); | ||
})); |
4 changes: 4 additions & 0 deletions
4
...sync/es2017/asyncArrowFunction/asyncArrowFunction2_es2017/input.ts/es5.1.normal/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// @target: es2017 | ||
// @noEmitHelpers: true | ||
var f = function(_await) { | ||
}; |
Empty file.
5 changes: 5 additions & 0 deletions
5
...sync/es2017/asyncArrowFunction/asyncArrowFunction3_es2017/input.ts/es5.1.normal/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// @target: es2017 | ||
// @noEmitHelpers: true | ||
function f(param) { | ||
var _await = param === void 0 ? _await : param; | ||
} |
Empty file.
4 changes: 4 additions & 0 deletions
4
...sync/es2017/asyncArrowFunction/asyncArrowFunction4_es2017/input.ts/es5.1.normal/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// @target: es2017 | ||
// @noEmitHelpers: true | ||
var _await = function() { | ||
}; |
Empty file.
Oops, something went wrong.