-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
benchmark
should be executed in "strict mode"
#3983
Comments
+1. Given that most code runs in strict mode nowadays, I think we should benchmark in it too. |
I will submit a PR soon 😄 |
What's the difference in just running benchmarks with --use_strict rather? I imagine benchmarking can be done in both modes? |
@fl0w just running |
We don't even lint code in
shows 275 linter errors in benchmark, so it'd be quite a bit of work. (also, the |
Note: I think not all of the benchmarks even work anymore. |
@Fishrock123 I agree, there are many invalid files |
@JungMinu Looks like some older benchmarks use also deprecated methods |
Some notes on benchmarks:
|
PR: #5336 |
Fixed in #5336 |
The lint rule is there to avoid a circular-dependency issue that only applies to `/lib`. In preparation for linting `/benchmark`, apply that rule to `/lib` only to avoid churn in `/benchmark`. Refs: nodejs#3983 (comment)
The lint rule is there to avoid a circular-dependency issue that only applies to `/lib`. In preparation for linting `/benchmark`, apply that rule to `/lib` only to avoid churn in `/benchmark`. Refs: nodejs#3983 (comment) PR-URL: nodejs#5371 Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
The lint rule is there to avoid a circular-dependency issue that only applies to `/lib`. In preparation for linting `/benchmark`, apply that rule to `/lib` only to avoid churn in `/benchmark`. Refs: #3983 (comment) PR-URL: #5371 Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
The lint rule is there to avoid a circular-dependency issue that only applies to `/lib`. In preparation for linting `/benchmark`, apply that rule to `/lib` only to avoid churn in `/benchmark`. Refs: #3983 (comment) PR-URL: #5371 Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
The lint rule is there to avoid a circular-dependency issue that only applies to `/lib`. In preparation for linting `/benchmark`, apply that rule to `/lib` only to avoid churn in `/benchmark`. Refs: #3983 (comment) PR-URL: #5371 Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
The lint rule is there to avoid a circular-dependency issue that only applies to `/lib`. In preparation for linting `/benchmark`, apply that rule to `/lib` only to avoid churn in `/benchmark`. Refs: #3983 (comment) PR-URL: #5371 Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
Files in
benchmark
are not usingstrict mode
Strict mode makes it easier to write "secure" JavaScript.
Therefore,
benchmark
should be executed instrict mode
The text was updated successfully, but these errors were encountered: