robertbira

Italian Translation Report: Node.js [Part 17 - 1164 words]

Jul 31st, 2018
81
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Tests for any deep inequality.
  2. Opposite of
  3. OK: and are not deeply equal
  4. If the values are deeply equal, an is thrown with a property set equal to the value of the parameter.
  5. If the parameter is undefined, a default error message is assigned.
  6. If the parameter is an instance of an then it will be thrown instead of the
  7. Tests shallow, coercive inequality with the
  8. Tests strict inequality between the and parameters as determined by the
  9. Tests if is truthy.
  10. It is equivalent to
  11. If no arguments are passed in at all will be set to the string:
  12. Be aware that in the the error message will be different to the one thrown in a file!
  13. It will then check that the promise is rejected.
  14. If is a function and it throws an error synchronously, will return a rejected with that error.
  15. If the function does not return a promise, will return a rejected with an error.
  16. In both cases the error handler is skipped.
  17. Besides the async nature to await the completion behaves identically to
  18. If specified, can be a, a validation function, an object where each property will be tested for, or an instance of error where
  19. each property will be tested for including the non-enumerable and properties.
  20. If specified, will be the message provided by the if the block fails to reject.
  21. Note that cannot be a string.
  22. If a string is provided as the second argument, then is assumed to be omitted and the string will be used for instead.
  23. This can lead to easy-to-miss mistakes.
  24. Please read the example in carefully if using a string as the second argument gets considered.
  25. Expects the function to throw an error.
  26. Custom error object / error instance:
  27. Note that only properties on the error object will be tested!
  28. Fails due to the different and properties:
  29. This tests for and
  30. Validate using constructor:
  31. Validate error message using
  32. Using a regular expression runs on the error object, and will therefore also include the error name.
  33. Custom error validation:
  34. Using the same message as the thrown error message is going to result in an error.
  35. The second argument is a string and the input function threw an Error.
  36. The first case will not throw as it does not match for the error message thrown by the input function!
  37. In the next example the message has no benefit over the message from the error and since it is not clear if the user intended to actually match against the error message, Node.js thrown an `ERR_AMBIGUOUS_ARGUMENT` error.
  38. Throws an error:
  39. The string is only used (as message) in case the function does not throw:
  40. If it was intended to match for the error message do this instead:
  41. Does not throw because the error messages match.
  42. Due to the confusing notation, it is recommended not to use a string as the second argument.
  43.  
  44. Issues
  45. How to Contribute in Issues
  46. Asking for General Help
  47. Discussing non-technical topics
  48. Submitting a Bug Report
  49. Triaging a Bug Report
  50. Resolving a Bug Report
  51. For any issue, there are fundamentally three ways an individual can contribute:
  52. By opening the issue for discussion: For instance, if you believe that you have uncovered a bug in Node.js, creating a new issue in the issue tracker is the way to report it.
  53. By helping to triage the issue: This can be done either by providing supporting details (a test case that demonstrates a bug), or providing suggestions on how to address the issue.
  54. By helping to resolve the issue: Typically this is done either in the form of demonstrating that the issue reported is not a problem after all, or more often, by opening a Pull Request that changes some bit of something in in a concrete and reviewable manner.
  55. Because the level of activity in the repository is so high, questions or requests for general help using Node.js should be directed at the Node.js help repository.
  56. Discussion of non-technical topics (such as intellectual property and trademark) should be directed to the repository.
  57. When opening a new issue in the issue tracker, users will be presented with a basic template that should be filled in.
  58. Thank you for reporting an issue.
  59. This issue tracker is for bugs and issues found within Node.js core. If you require more general support please file an issue on our help repo.
  60. Please fill in as much of the template below as you're able.
  61. if known, please specify affected core module name
  62. If possible, please provide code that demonstrates the problem, keeping it as simple and free of external dependencies as you are able.
  63. Enter your issue details below this comment.
  64. If you believe that you have uncovered a bug in Node.js, please fill out this form, following the template to the best of your ability. Do not worry if you cannot answer every detail, just fill in what you can.
  65. The two most important pieces of information we need in order to properly evaluate the report is a description of the behavior you are seeing and a simple test case we can use to recreate the problem on our own. If we cannot recreate the issue, it becomes impossible for us to fix.
  66. In order to rule out the possibility of bugs introduced by userland code, test cases should be limited, as much as possible, to using only Node.js APIs. If the bug occurs only when you're using a specific userland module, there is a very good chance that either (a) the module has a bug or (b) something in Node.js changed that broke the module.
  67. See How to create a Minimal, Complete, and Verifiable example.
  68. Once an issue has been opened, it is not uncommon for there to be discussion around it. Some contributors may have differing opinions about the issue, including whether the behavior being seen is a bug or a feature. This discussion is part of the process and should be kept focused, helpful, and professional.
  69. Short, clipped responses—that provide neither additional context nor supporting detail—are not helpful or professional. To many, such responses are simply annoying and unfriendly.
  70. Contributors are encouraged to help one another make forward progress as much as possible, empowering one another to solve issues collaboratively. If you choose to comment on an issue that you feel either is not a problem that needs to be fixed, or if you encounter information in an issue that you feel is incorrect, explain why you feel that way with additional supporting context, and be willing to be convinced that you may be wrong. By doing so, we can often reach the correct outcome much faster.
  71. In the vast majority of cases, issues are resolved by opening a Pull Request. The process for opening and reviewing a Pull Request is similar to that of opening and triaging issues, but carries with it a necessary review and approval workflow that ensures that the proposed changes meet the minimal quality and functional guidelines of the Node.js project.
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×