-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Simplify js tester a bit #90530
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Simplify js tester a bit #90530
Conversation
src/tools/rustdoc-js/tester.js
Outdated
|| args[i] === "--test-folder" | ||
|| args[i] === "--test-file" | ||
|| args[i] === "--crate-name") { | ||
if (correspondances[args[i]] !== undefined) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (correspondances[args[i]] !== undefined) { | |
if (Object.hasOwn(correspondances, args[i])) { |
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwn
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, a nit: "correspondances" should be spelled "correspondences". While you're at it, do you want to fix the spelling?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure!
9130907
to
f30ac52
Compare
Updated. TIL thanks to both of you. :) |
This comment has been minimized.
This comment has been minimized.
@notriddle I didn't check the requirements but they're quite high in fact! I'll revert to |
f30ac52
to
f983e71
Compare
This comment has been minimized.
This comment has been minimized.
f983e71
to
3f496b5
Compare
So apparently, |
@bors: r=notriddle rollup |
📌 Commit 3f496b5 has been approved by |
…r=notriddle Simplify js tester a bit r? `@notriddle`
…r=notriddle Simplify js tester a bit r? ``@notriddle``
…r=notriddle Simplify js tester a bit r? ```@notriddle```
…r=notriddle Simplify js tester a bit r? ````@notriddle````
Rollup of 9 pull requests Successful merges: - rust-lang#90507 (Suggest `extern crate alloc` when using undeclared module `alloc`) - rust-lang#90530 (Simplify js tester a bit) - rust-lang#90533 (Add note about x86 instruction prefixes in asm! to unstable book) - rust-lang#90537 (Update aarch64 `target_feature` list for LLVM 12.) - rust-lang#90544 (Demote metadata load warning to "info".) - rust-lang#90554 (Clean up some `-Z unstable-options` in tests.) - rust-lang#90556 (Add more text and examples to `carrying_{add|mul}`) - rust-lang#90563 (rustbot allow labels) - rust-lang#90571 (Fix missing bottom border for headings in sidebar) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
r? @notriddle