TypeScript/tests/baselines/reference/emitArrowFunctionWhenUsingArguments18.js

17 lines
382 B
TypeScript
Raw Normal View History

2015-04-16 21:42:25 +02:00
//// [emitArrowFunctionWhenUsingArguments18.ts]
function f() {
var { arguments: args } = { arguments };
if (Math.random()) {
return () => arguments;
}
}
//// [emitArrowFunctionWhenUsingArguments18.js]
function f() {
var args = { arguments: arguments }.arguments;
if (Math.random()) {
return function () { return arguments; };
}
}