Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 18.116.170.100
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp_probe /
node_modules /
nan /
doc /
Delete
Unzip
Name
Size
Permission
Date
Action
asyncworker.md
5.23
KB
-rw-r--r--
2018-02-22 17:07
buffers.md
2.07
KB
-rw-r--r--
2017-04-05 22:07
callback.md
2.57
KB
-rw-r--r--
2018-02-22 17:07
converters.md
1.9
KB
-rw-r--r--
2017-04-05 22:07
errors.md
7.23
KB
-rw-r--r--
2017-11-06 23:36
json.md
1.9
KB
-rw-r--r--
2017-11-06 23:36
maybe_types.md
21.87
KB
-rw-r--r--
2018-03-16 15:57
methods.md
26.6
KB
-rw-r--r--
2018-08-25 12:11
new.md
4.75
KB
-rw-r--r--
2017-11-06 23:36
node_misc.md
5.57
KB
-rw-r--r--
2018-08-25 12:11
object_wrappers.md
8.03
KB
-rw-r--r--
2018-08-25 12:11
persistent.md
10.63
KB
-rw-r--r--
2018-09-29 08:02
scopes.md
2.31
KB
-rw-r--r--
2017-11-06 23:36
script.md
1.25
KB
-rw-r--r--
2017-11-06 23:36
string_bytes.md
1.86
KB
-rw-r--r--
2017-04-05 22:07
v8_internals.md
7.23
KB
-rw-r--r--
2017-11-15 11:00
v8_misc.md
2.85
KB
-rw-r--r--
2017-11-06 23:36
Save
Rename
## Nan::Callback `Nan::Callback` makes it easier to use `v8::Function` handles as callbacks. A class that wraps a `v8::Function` handle, protecting it from garbage collection and making it particularly useful for storage and use across asynchronous execution. - <a href="#api_nan_callback"><b><code>Nan::Callback</code></b></a> <a name="api_nan_callback"></a> ### Nan::Callback ```c++ class Callback { public: Callback(); explicit Callback(const v8::Local<v8::Function> &fn); ~Callback(); bool operator==(const Callback &other) const; bool operator!=(const Callback &other) const; v8::Local<v8::Function> operator*() const; MaybeLocal<v8::Value> operator()(AsyncResource* async_resource, v8::Local<v8::Object> target, int argc = 0, v8::Local<v8::Value> argv[] = 0) const; MaybeLocal<v8::Value> operator()(AsyncResource* async_resource, int argc = 0, v8::Local<v8::Value> argv[] = 0) const; void SetFunction(const v8::Local<v8::Function> &fn); v8::Local<v8::Function> GetFunction() const; bool IsEmpty() const; void Reset(const v8::Local<v8::Function> &fn); void Reset(); MaybeLocal<v8::Value> Call(v8::Local<v8::Object> target, int argc, v8::Local<v8::Value> argv[], AsyncResource* async_resource) const; MaybeLocal<v8::Value> Call(int argc, v8::Local<v8::Value> argv[], AsyncResource* async_resource) const; // Deprecated versions. Use the versions that accept an async_resource instead // as they run the callback in the correct async context as specified by the // resource. If you want to call a synchronous JS function (i.e. on a // non-empty JS stack), you can use Nan::Call instead. v8::Local<v8::Value> operator()(v8::Local<v8::Object> target, int argc = 0, v8::Local<v8::Value> argv[] = 0) const; v8::Local<v8::Value> operator()(int argc = 0, v8::Local<v8::Value> argv[] = 0) const; v8::Local<v8::Value> Call(v8::Local<v8::Object> target, int argc, v8::Local<v8::Value> argv[]) const; v8::Local<v8::Value> Call(int argc, v8::Local<v8::Value> argv[]) const; }; ``` Example usage: ```c++ v8::Local<v8::Function> function; Nan::Callback callback(function); callback.Call(0, 0); ```