You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/babel-plugin-transform-async-generator-functions/test/fixtures/regression/13801-babel-7/output.js
+1-1
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ function _regeneratorAsyncIterator(t, e) { function r(n, o, i, f) { var a = _try
function_regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */vare,t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeofSymbol ? Symbol : {},i=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag",u=["next","throw","return"];functionc(r,n,o,i){vara=n&&n.prototypeinstanceofGenerator ? n : Generator,c=Object.create(a.prototype);return_regeneratorDefine(c,"_invoke",function(r,n,o){vari,a,c,p=0,y=o||[],d=!1,l={prev: 0,next: 0,sent: e,abrupt: s,finish: s.bind(e,4),delegateYield: (t,r)=>(i=_regeneratorValues(t),a=0,c=e,l.next=r,f)};functions(r,n){for(a=r,c=n,t=0;!d&&p&&!o&&t<y.length;t++){varo,i=y[t],u=l.prev,s=i[2];r>3 ? (o=s===n)&&(a=i[4]||3,c=i[5]===e ? i[3] : i[5],i[4]=3,i[5]=e) : i[0]<=u&&((o=r<2&&u<i[1]) ? (a=0,l.sent=n,l.next=i[1]) : u<s&&(o=r<3||i[0]>n||n>s)&&(i[4]=r,i[5]=n,l.next=s,a=0));}if(o||r>1)returnf;throwd=!0,n;}returnfunction(o,y,G){if(2===p)throwError("Generator is already running");for(d&&1===y&&s(y,G),a=y,c=G;!d||(t=e);){i||(a ? a<3 ? (a>1&&(l.next=-1),s(a,c)) : l.next=c : l.sent=c);try{if(i){if(t=i[u[a]]){if(t=t.call(i,c)){if(!t)throwTypeError("iterator result is not an object");if(!t.done)returnt;c=t.value,a<2&&(a=0);}}elsea&&(t=i[u[2]])&&t.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+u[a]+"' method"),a=1);i=e;}elseif(p=2,t=(d=l.next<0) ? c : r.call(n,l),p=d ? 3 : 1,t!==f)break;}catch(t){p=3,i=e,a=1,c=t;}}return{value: t,done: d};};}(r,o,i),!0),c;}varf={};functionGenerator(){}functionGeneratorFunction(){}functionGeneratorFunctionPrototype(){}varp={};_regeneratorDefine(p,i,function(){returnthis;});vary=Object.getPrototypeOf,d=y&&y(y(_regeneratorValues([])));d&&d!==r&&n.call(d,i)&&(p=d);varl=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);functions(e){returnObject.setPrototypeOf ? Object.setPrototypeOf(e,GeneratorFunctionPrototype) : (e.__proto__=GeneratorFunctionPrototype,_regeneratorDefine(e,a,"GeneratorFunction")),e.prototype=Object.create(l),e;}returnGeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine(l,"constructor",GeneratorFunctionPrototype),_regeneratorDefine(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName=_regeneratorDefine(GeneratorFunctionPrototype,a,"GeneratorFunction"),_regeneratorDefineIM(l),_regeneratorDefine(l,a,"Generator"),_regeneratorDefine(l,i,function(){returnthis;}),_regeneratorDefine(l,"toString",function(){return"[object Generator]";}),(_regenerator=function(){return{w: c,m: s};})();}
7
+
function_regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */vare,t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeofSymbol ? Symbol : {},i=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag",u=["next","throw","return"];functionc(r,n,o,i){vara=n&&n.prototypeinstanceofGenerator ? n : Generator,c=Object.create(a.prototype);return_regeneratorDefine(c,"_invoke",function(r,n,o){vari,a,c,p=0,y=o||[],d=!1,l={prev: 0,next: 0,sent: e,abrupt: s,finish: s.bind(e,4),delegateYield: (t,r)=>(i=_regeneratorValues(t),a=0,c=e,l.next=r,f)};functions(r,n){for(a=r,c=n,t=0;!d&&p&&!o&&t<y.length;t++){varo,i=y[t],u=l.prev,s=i[2];r>3 ? (o=s===n)&&(a=i[4]||3,c=i[5]===e ? i[3] : i[5],i[4]=3,i[5]=e) : i[0]<=u&&((o=r<2&&u<i[1]) ? (a=0,l.sent=n,l.next=i[1]) : u<s&&(o=r<3||i[0]>n||n>s)&&(i[4]=r,i[5]=n,l.next=s,a=0));}if(o||r>1)returnf;throwd=!0,n;}returnfunction(o,y,G){if(2===p)throwError("Generator is already running");for(d&&1===y&&s(y,G),a=y,c=G;!d||(t=e);){i||(a ? a<3 ? (a>1&&(l.next=-1),s(a,c)) : l.next=c : l.sent=c);try{if(i){if(t=i[u[a]]){if(t=t.call(i,c)){if(!t)throwTypeError("iterator result is not an object");if(!t.done)returnt;c=t.value,a<2&&(a=0);}}else1===a&&(t=i[u[2]])&&t.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+u[a]+"' method"),a=1);i=e;}elseif(p=2,t=(d=l.next<0) ? c : r.call(n,l),p=d ? 3 : 1,t!==f)break;}catch(t){p=3,i=e,a=1,c=t;}}return{value: t,done: d};};}(r,o,i),!0),c;}varf={};functionGenerator(){}functionGeneratorFunction(){}functionGeneratorFunctionPrototype(){}varp={};_regeneratorDefine(p,i,function(){returnthis;});vary=Object.getPrototypeOf,d=y&&y(y(_regeneratorValues([])));d&&d!==r&&n.call(d,i)&&(p=d);varl=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);functions(e){returnObject.setPrototypeOf ? Object.setPrototypeOf(e,GeneratorFunctionPrototype) : (e.__proto__=GeneratorFunctionPrototype,_regeneratorDefine(e,a,"GeneratorFunction")),e.prototype=Object.create(l),e;}returnGeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine(l,"constructor",GeneratorFunctionPrototype),_regeneratorDefine(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName=_regeneratorDefine(GeneratorFunctionPrototype,a,"GeneratorFunction"),_regeneratorDefineIM(l),_regeneratorDefine(l,a,"Generator"),_regeneratorDefine(l,i,function(){returnthis;}),_regeneratorDefine(l,"toString",function(){return"[object Generator]";}),(_regenerator=function(){return{w: c,m: s};})();}
8
8
function_regeneratorValues(e){if(null!=e){varr=e["function"==typeofSymbol&&Symbol.iterator||"@iterator"];if(r)returnr.call(e);if("function"==typeofe.next)returne;if(!isNaN(e.length)){vart=-1,n=functionr(){for(;++t<e.length;)if({}.hasOwnProperty.call(e,t))returnr.value=e[t],r.done=!1,r;returnr.value=void0,r.done=!0,r;};returnn.next=n;}}thrownewTypeError(typeofe+" is not iterable");}
0 commit comments