-
-
Notifications
You must be signed in to change notification settings - Fork 813
Feature/sum-series #2
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
Conversation
Current coverage is
|
Build breaks because Travis tries to run the test file in the |
@Planeshifter Not allowing tests in subdirectories is not a good solution, as it forces us into a particular test structure and reflects our limitations rather than anything inherent in the project structure. An alternative solution is to not have a separate file, include the tests in the main test file, and then only run generator tests provided generator support. For an example, see is-number, which uses a feature of |
I will try this out later. However, are you sure this will work? Recall that I moved the tests to a separate file precisely because the |
@Planeshifter Another alternative is just to rename the file from |
@Planeshifter An aside: if an environment does throw a SyntaxError even if the code is not run, that would be interesting. To my knowledge, V8 lazily compiles each function upon first invocation. This, however, cannot be generalized to all environments, which may be more or less aggressive in compiling JS source. |
For example, this code block throws when executed on node version function notexecuted() {
function* geometricSeriesGenerator( x ) {
var exponent = 0;
while ( true ) {
yield Math.pow( x, exponent );
exponent += 1;
}
}
} |
Renaming from |
@Planeshifter Yes, you are right. This is also supported in node-compat, where Node <= v0.12 throws. Would be interesting to know the step-by-step process of the compiler upon first encountering JS code. The implemented workaround is good, as it isolates the exception to where the problem arises, rather than forcing a broader generalization which affects the entire project. Thanks for updating. Will review later. |
@Planeshifter a few comments:
|
Thanks for these suggested improvements! |
Hmm, I rebased but now these pull requests contain way too many commits. Any idea why this happened? We should create new pull requests to only merge in the relevant commits. |
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: na - task: run_c_examples status: na - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: na - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: na - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: na ---
Ported over from
math-io
. Made some small adjustments. Should be ready to land. Can you please look over it and then merge in? Thanks!