We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
it's seems like starlight is adding a return []; statement at the end of a function.
return [];
The problem is when we specify an explicit return statement like so:
function increment () counter = counter + 1 updateUI() return "" end
It will generate the following Javascript:
$set($, 'increment', (__star_tmp = function func$increment(...args){let $3 = $1.extend(), $ = $3; ; $set($, 'counter', __star_op_add($get($, 'counter'), 1)); __star_call($get($, 'updateUI')); return [""];; return [];}, __star_tmp.toString=()=>'function: 0x2', __star_tmp));
Here we saw that there two return statement the explicit and implicit one. So browsers like Firefox are emitting a warning.
For information, I am using the grunt configuration.
The text was updated successfully, but these errors were encountered:
- Implements getfenv() and setfenv() with function argument.
getfenv()
setfenv()
84c54cd
- Dedupes return statements (Fixes #39).
No branches or pull requests
Hello,
it's seems like starlight is adding a
return [];
statement at the end of a function.The problem is when we specify an explicit return statement like so:
It will generate the following Javascript:
Here we saw that there two return statement the explicit and implicit one. So browsers like Firefox are emitting a warning.
For information, I am using the grunt configuration.
The text was updated successfully, but these errors were encountered: