Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_catch is undefined in inline mode #90

Open
macgyver opened this issue Apr 8, 2024 · 0 comments
Open

_catch is undefined in inline mode #90

macgyver opened this issue Apr 8, 2024 · 0 comments

Comments

@macgyver
Copy link

macgyver commented Apr 8, 2024

hi there, i was noticing that there's a certain situation in which an undefined function will be called - when I run this input in "inlined" mode:

(async function () {
	try {
		await false();
	} catch (e) {}
})();

the output looks like this:

function(){try{const _temp=_catch(function(){return Promise.resolve(false()).then(function(){});},function(){});return Promise.resolve(_temp&&_temp.then?_temp.then(function(){}):void 0);}catch(e){return Promise.reject(e);}}()

it is still referencing the _catch function from the helpers module - is this a bug? i would have expected the inlined version to not use any helpers. Thanks for taking a look! I'd be happy to pay for a bug fix. Just let me know if you're still maintaining this library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant