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
finally
Sval doesn't deal with finally statement correctly, it doesn't check whether there's RETURN value before return, which leads below case failed.
RETURN
Test case:
const Sval = require('sval') const interpreter = new Sval({ ecmaVer: 8 }) interpreter.run(` function T() { try { return 7; } catch (ex) { return 5; } finally { } } console.log(T()); exports.end = true; `) module.exports = 'End: ' + interpreter.exports.end
Expected result:
7
Actual result:
undefined
Cause: always returns value. needing to check whether there's a RETURN.
The text was updated successfully, but these errors were encountered:
ea6c907
Siubaak
No branches or pull requests
Sval doesn't deal with
finally
statement correctly, it doesn't check whether there'sRETURN
value before return, which leads below case failed.Test case:
Expected result:
Actual result:
Cause: always returns value. needing to check whether there's a RETURN.
The text was updated successfully, but these errors were encountered: