X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;ds=sidebyside;f=node_modules%2Fnode-pty%2Fnode_modules%2Fnan%2Fdoc%2Fcallback.md;fp=node_modules%2Fnode-pty%2Fnode_modules%2Fnan%2Fdoc%2Fcallback.md;h=0000000000000000000000000000000000000000;hb=5e96dd57ddd883604e87f62bdddcb111c63a6e1a;hp=f7af0bfd9d8281f2eb7e16fc57e787ce54ebeda2;hpb=acb5f682a2b75b972710cabd81658f63071324b0;p=VSoRC%2F.git
diff --git a/node_modules/node-pty/node_modules/nan/doc/callback.md b/node_modules/node-pty/node_modules/nan/doc/callback.md
deleted file mode 100644
index f7af0bf..0000000
--- a/node_modules/node-pty/node_modules/nan/doc/callback.md
+++ /dev/null
@@ -1,76 +0,0 @@
-## 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.
-
- - Nan::Callback
-
-
-### Nan::Callback
-
-```c++
-class Callback {
- public:
- Callback();
-
- explicit Callback(const v8::Local &fn);
-
- ~Callback();
-
- bool operator==(const Callback &other) const;
-
- bool operator!=(const Callback &other) const;
-
- v8::Local operator*() const;
-
- MaybeLocal operator()(AsyncResource* async_resource,
- v8::Local target,
- int argc = 0,
- v8::Local argv[] = 0) const;
-
- MaybeLocal operator()(AsyncResource* async_resource,
- int argc = 0,
- v8::Local argv[] = 0) const;
-
- void SetFunction(const v8::Local &fn);
-
- v8::Local GetFunction() const;
-
- bool IsEmpty() const;
-
- void Reset(const v8::Local &fn);
-
- void Reset();
-
- MaybeLocal Call(v8::Local target,
- int argc,
- v8::Local argv[],
- AsyncResource* async_resource) const;
- MaybeLocal Call(int argc,
- v8::Local 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 operator()(v8::Local target,
- int argc = 0,
- v8::Local argv[] = 0) const;
-
- v8::Local operator()(int argc = 0,
- v8::Local argv[] = 0) const;
- v8::Local Call(v8::Local target,
- int argc,
- v8::Local argv[]) const;
-
- v8::Local Call(int argc, v8::Local argv[]) const;
-};
-```
-
-Example usage:
-
-```c++
-v8::Local function;
-Nan::Callback callback(function);
-callback.Call(0, 0);
-```