Italian Translation Report: Node.js [Part 12 - 1295 words]

Jul 24th, 2018
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. The object to query.
  2. The name of the property to delete.
  3. Whether the property deletion succeeded or not.
  4. result can optionally be ignored by passing
  5. This API attempts to delete the own property from
  6. The name of the own property whose existence to check.
  7. Whether the own property exists on the object or not.
  8. This API checks if the passed in has the named own property. must be a string or a, or an error will be thrown.
  9. N-API will not perform any conversion between data types.
  10. The object on which to set the property.
  11. The name of the property to set.
  12. The property value.
  13. This method is equivalent to calling with a created from the string passed in as
  14. The object from which to retrieve the property.
  15. The name of the property to get.
  16. The object from which to set the properties.
  17. The index of the property to set.
  18. This API sets and element on the passed in.
  19. This API gets the element at the requested index.
  20. This API returns if the passed in has an element at the requested index.
  21. Whether the element deletion succeeded or not.
  22. This API attempts to delete the specified from
  23. The number of elements in the array.
  24. The array of property descriptors.
  25. This method allows the efficient definition of multiple properties on a given object.
  26. The properties are defined using property descriptors (see
  27. Given an array of such property descriptors, this API will set the properties on the object one at a time, as defined by (described in Section 9.1.6 of the ECMA262 specification).
  28. The object passed to the called function.
  29. representing the JavaScript function to be invoked.
  30. The count of elements in the array.
  31. Array of representing JavaScript values passed in as arguments to the function.
  32. representing the JavaScript object returned.
  33. This method allows a JavaScript function object to be called from a native add-on.
  34. This is the primary mechanism of calling back from the add-on's native code into JavaScript.
  35. For the special case of calling into JavaScript after an async operation, see
  36. A sample use case might look as follows.
  37. Consider the following JavaScript snippet:
  38. Then, the above function can be invoked from a native add-on using the following code:
  39. Get the function named "AddTwo" on the global object
  40. Convert the result back to a native type
  41. The name of the function encoded as UTF8.
  42. This is visible within JavaScript as the new function object's property.
  43. The native function which should be called when this function object is invoked.
  44. User-provided data context.This will be passed back into the function when invoked later.
  45. representing the JavaScript function object for the newly created function.
  46. This API allows an add-on author to create a function object in native code. This is the primary mechanism to allow calling into the add-on's native code from JavaScript.
  47. The newly created function is not automatically visible from script after this call. Instead, a property must be explicitly set on any object that is visible to JavaScript, in order for the function to be accessible from script.
  48. In order to expose a function as part of the add-on's module exports, set the newly created function on the exports object. A sample module might look as follows:
  49. Given the above code, the add-on can be used from JavaScript as follows:
  50. The string passed to require is not necessarily the name passed into in the earlier snippet but the name of the target in responsible for creating the file
  51. The callback info passed into the callback function.
  52. Specifies the size of the provided array and receives the actual count of arguments.
  53. Buffer to which the representing the arguments are copied.
  54. If there are more arguments than the provided count, only the requested number of arguments are copied.
  55. If there are fewer arguments provided than claimed, the rest of is filled with values that represent
  56. Receives the JavaScript argument for the call.
  57. Receives the data pointer for the callback.
  58. This method is used within a callback function to retrieve details about the call like the arguments and the pointer from a given callback info.
  59. The of the constructor call.
  60. This API returns the of the constructor call.If the current callback is not a constructor call, the result is
  61. representing the JavaScript function to be invoked as a constructor.
  62. Array of JavaScript values as representing the arguments to the constructor.
  63. representing the JavaScript object returned, which in this case is the constructed object.
  64. This method is used to instantiate a new JavaScript value using a given that represents the constructor for the object.
  65. The following can be approximated in N-API using the following snippet:
  66. Get the constructor function MyObject
  67. Object Wrap
  68. N-API offers a way to "wrap" C++ classes and instances so that the class constructor and methods can be called from JavaScript.
  69. The API defines a JavaScript class with constructor, static properties and methods, and instance properties and methods that correspond to the C++ class.
  70. When JavaScript code invokes the constructor, the constructor callback uses to wrap a new C++ instance in a JavaScript object, then returns the wrapper object.
  71. When JavaScript code invokes a method or property accessor on the class, the corresponding C++ function is invoked.
  72. For an instance callback, obtains the C++ instance that is the target of the call.
  73. For wrapped objects it may be difficult to distinguish between a function called on a class prototype and a function called on an instance of a class.
  74. A common pattern used to address this problem is to save a persistent reference to the class constructor for later checks.
  75. otherwise
  76. The reference must be freed once it is no longer needed.
  77. Name of the JavaScript constructor function; this is not required to be the same as the C++ class name, though it is recommended for clarity.
  78. The length of the in bytes, or if it is null-terminated.
  79. Callback function that handles constructing instances of the class. (This should be a static method on the class, not an actual C++ constructor function.)
  80. Optional data to be passed to the constructor callback as the property of the callback info.
  81. Number of items in the array argument.
  82. Array of property descriptors describing static and instance data properties, accessors, and methods on the class See
  83. A representing the constructor function for the class.
  84. Defines a JavaScript class that corresponds to a C++ class, including:
  85. A JavaScript constructor function that has the class name and invokes the provided C++ constructor callback.
  86. Properties on the constructor function corresponding to static data properties, accessors, and methods of the C++ class (defined by property descriptors with the attribute).
  87. Properties on the constructor function's object corresponding to <1>non-static</1> data properties, accessors, and methods of the C++ class (defined by property descriptors without the attribute).
  88. The C++ constructor callback should be a static method on the class that calls the actual class constructor, then wraps the new C++ instance in a JavaScript object, and returns the wrapper object. See for details.
  89. The JavaScript constructor function returned from is often saved and used later, to construct new instances of the class from native code, and/or check whether provided values are instances of the class.
  90. In that case, to prevent the function value from being garbage-collected, create a persistent reference to it using and ensure the reference count is kept >= 1.
  91. The JavaScript object that will be the wrapper for the native object.
  92. This object must have been created from the of a constructor that was created using
  93. The native instance that will be wrapped in the JavaScript object.
  94. Optional native callback that can be used to free the native instance when the JavaScript object is ready for garbage-collection.
  95. Optional contextual hint that is passed to the finalize callback.
  96. Optional reference to the wrapped object
RAW Paste Data

Adblocker detected! Please consider disabling it...

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

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

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