(Note: Non-breaking issues are likely not to be prioritized. Please consider a PR in addition to your issue)
Expected Behavior
When running an Apps Script function, clasp run should return whatever the function returns.
Actual Behavior
When the function returns a 0, clasp run returns 'No response', and the correct output at other values. To force the 0 to be returned, you need to return the type cast String(output).
Steps to Reproduce the Problem
- Create an apps script function
function test() {
return 0;
}
-
do clasp run test
No response.
-
Change to
function test() {
return 1;
}
-
do clasp run test
1
-
Change to
function test() {
return String(0);
}
- do clasp run test
0
Specifications
- Node version (
node -v): 13.8.0
- Version (
clasp -v): 2.3.0
- OS (Mac): 10.15.4
Expected Behavior
When running an Apps Script function, clasp run should return whatever the function returns.
Actual Behavior
When the function returns a 0, clasp run returns 'No response', and the correct output at other values. To force the 0 to be returned, you need to return the type cast String(output).
Steps to Reproduce the Problem
function test() {
return 0;
}
do clasp run test
No response.
Change to
function test() {
return 1;
}
do clasp run test
1
Change to
function test() {
return String(0);
}
0
Specifications
node -v): 13.8.0clasp -v): 2.3.0