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.119.110.206
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp-musonza /
node_modules /
nan /
Delete
Unzip
Name
Size
Permission
Date
Action
doc
[ DIR ]
drwxr-xr-x
2021-02-04 21:24
tools
[ DIR ]
drwxr-xr-x
2021-02-04 21:24
CHANGELOG.md
19.83
KB
-rw-r--r--
2018-09-29 08:04
LICENSE.md
1.19
KB
-rw-r--r--
2018-02-22 17:07
README.md
27.94
KB
-rw-r--r--
2018-09-29 08:04
include_dirs.js
55
B
-rw-r--r--
2017-04-05 22:07
nan-2.11.1.tgz
72.81
KB
-rw-r--r--
2018-09-29 08:09
nan.h
83.32
KB
-rw-r--r--
2018-09-29 08:05
nan_callbacks.h
3.02
KB
-rw-r--r--
2018-02-22 17:07
nan_callbacks_12_inl.h
17.13
KB
-rw-r--r--
2018-08-25 12:11
nan_callbacks_pre_12_inl.h
16.68
KB
-rw-r--r--
2018-02-22 17:07
nan_converters.h
2.06
KB
-rw-r--r--
2018-02-22 17:07
nan_converters_43_inl.h
1.69
KB
-rw-r--r--
2018-03-16 15:57
nan_converters_pre_43_inl.h
1.22
KB
-rw-r--r--
2018-02-22 17:07
nan_define_own_property_helper.h
1
KB
-rw-r--r--
2018-03-16 15:57
nan_implementation_12_inl.h
13.95
KB
-rw-r--r--
2018-09-29 08:02
nan_implementation_pre_12_inl.h
7.76
KB
-rw-r--r--
2018-02-22 17:07
nan_json.h
5.64
KB
-rw-r--r--
2018-02-22 17:07
nan_maybe_43_inl.h
12.29
KB
-rw-r--r--
2018-03-16 15:57
nan_maybe_pre_43_inl.h
8.04
KB
-rw-r--r--
2018-03-16 15:57
nan_new.h
8.58
KB
-rw-r--r--
2018-02-22 17:07
nan_object_wrap.h
4
KB
-rw-r--r--
2018-02-22 17:07
nan_persistent_12_inl.h
3.78
KB
-rw-r--r--
2018-02-22 17:07
nan_persistent_pre_12_inl.h
6.01
KB
-rw-r--r--
2018-02-22 17:07
nan_private.h
2.42
KB
-rw-r--r--
2018-02-22 17:07
nan_string_bytes.h
7.91
KB
-rw-r--r--
2017-04-05 22:07
nan_typedarray_contents.h
2.8
KB
-rw-r--r--
2018-02-22 17:07
nan_weak.h
14.65
KB
-rw-r--r--
2018-02-22 17:07
package.json
2.56
KB
-rw-r--r--
2021-02-04 21:24
Save
Rename
/********************************************************************* * NAN - Native Abstractions for Node.js * * Copyright (c) 2018 NAN contributors * * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md> ********************************************************************/ #ifndef NAN_NEW_H_ #define NAN_NEW_H_ namespace imp { // scnr // TODO(agnat): Generalize template <typename T> v8::Local<T> To(v8::Local<v8::Integer> i); template <> inline v8::Local<v8::Integer> To<v8::Integer>(v8::Local<v8::Integer> i) { return Nan::To<v8::Integer>(i).ToLocalChecked(); } template <> inline v8::Local<v8::Int32> To<v8::Int32>(v8::Local<v8::Integer> i) { return Nan::To<v8::Int32>(i).ToLocalChecked(); } template <> inline v8::Local<v8::Uint32> To<v8::Uint32>(v8::Local<v8::Integer> i) { return Nan::To<v8::Uint32>(i).ToLocalChecked(); } template <typename T> struct FactoryBase { typedef v8::Local<T> return_t; }; template <typename T> struct MaybeFactoryBase { typedef MaybeLocal<T> return_t; }; template <typename T> struct Factory; template <> struct Factory<v8::Array> : FactoryBase<v8::Array> { static inline return_t New(); static inline return_t New(int length); }; template <> struct Factory<v8::Boolean> : FactoryBase<v8::Boolean> { static inline return_t New(bool value); }; template <> struct Factory<v8::BooleanObject> : FactoryBase<v8::BooleanObject> { static inline return_t New(bool value); }; template <> struct Factory<v8::Context> : FactoryBase<v8::Context> { static inline return_t New( v8::ExtensionConfiguration* extensions = NULL , v8::Local<v8::ObjectTemplate> tmpl = v8::Local<v8::ObjectTemplate>() , v8::Local<v8::Value> obj = v8::Local<v8::Value>()); }; template <> struct Factory<v8::Date> : MaybeFactoryBase<v8::Date> { static inline return_t New(double value); }; template <> struct Factory<v8::External> : FactoryBase<v8::External> { static inline return_t New(void *value); }; template <> struct Factory<v8::Function> : FactoryBase<v8::Function> { static inline return_t New( FunctionCallback callback , v8::Local<v8::Value> data = v8::Local<v8::Value>()); }; template <> struct Factory<v8::FunctionTemplate> : FactoryBase<v8::FunctionTemplate> { static inline return_t New( FunctionCallback callback = NULL , v8::Local<v8::Value> data = v8::Local<v8::Value>() , v8::Local<v8::Signature> signature = v8::Local<v8::Signature>()); }; template <> struct Factory<v8::Number> : FactoryBase<v8::Number> { static inline return_t New(double value); }; template <> struct Factory<v8::NumberObject> : FactoryBase<v8::NumberObject> { static inline return_t New(double value); }; template <typename T> struct IntegerFactory : FactoryBase<T> { typedef typename FactoryBase<T>::return_t return_t; static inline return_t New(int32_t value); static inline return_t New(uint32_t value); }; template <> struct Factory<v8::Integer> : IntegerFactory<v8::Integer> {}; template <> struct Factory<v8::Int32> : IntegerFactory<v8::Int32> {}; template <> struct Factory<v8::Uint32> : FactoryBase<v8::Uint32> { static inline return_t New(int32_t value); static inline return_t New(uint32_t value); }; template <> struct Factory<v8::Object> : FactoryBase<v8::Object> { static inline return_t New(); }; template <> struct Factory<v8::ObjectTemplate> : FactoryBase<v8::ObjectTemplate> { static inline return_t New(); }; template <> struct Factory<v8::RegExp> : MaybeFactoryBase<v8::RegExp> { static inline return_t New( v8::Local<v8::String> pattern, v8::RegExp::Flags flags); }; template <> struct Factory<v8::Script> : MaybeFactoryBase<v8::Script> { static inline return_t New( v8::Local<v8::String> source); static inline return_t New( v8::Local<v8::String> source , v8::ScriptOrigin const& origin); }; template <> struct Factory<v8::Signature> : FactoryBase<v8::Signature> { typedef v8::Local<v8::FunctionTemplate> FTH; static inline return_t New(FTH receiver = FTH()); }; template <> struct Factory<v8::String> : MaybeFactoryBase<v8::String> { static inline return_t New(); static inline return_t New(const char *value, int length = -1); static inline return_t New(const uint16_t *value, int length = -1); static inline return_t New(std::string const& value); static inline return_t New(v8::String::ExternalStringResource * value); static inline return_t New(ExternalOneByteStringResource * value); }; template <> struct Factory<v8::StringObject> : FactoryBase<v8::StringObject> { static inline return_t New(v8::Local<v8::String> value); }; } // end of namespace imp #if (NODE_MODULE_VERSION >= 12) namespace imp { template <> struct Factory<v8::UnboundScript> : MaybeFactoryBase<v8::UnboundScript> { static inline return_t New( v8::Local<v8::String> source); static inline return_t New( v8::Local<v8::String> source , v8::ScriptOrigin const& origin); }; } // end of namespace imp # include "nan_implementation_12_inl.h" #else // NODE_MODULE_VERSION >= 12 # include "nan_implementation_pre_12_inl.h" #endif //=== API ====================================================================== template <typename T> typename imp::Factory<T>::return_t New() { return imp::Factory<T>::New(); } template <typename T, typename A0> typename imp::Factory<T>::return_t New(A0 arg0) { return imp::Factory<T>::New(arg0); } template <typename T, typename A0, typename A1> typename imp::Factory<T>::return_t New(A0 arg0, A1 arg1) { return imp::Factory<T>::New(arg0, arg1); } template <typename T, typename A0, typename A1, typename A2> typename imp::Factory<T>::return_t New(A0 arg0, A1 arg1, A2 arg2) { return imp::Factory<T>::New(arg0, arg1, arg2); } template <typename T, typename A0, typename A1, typename A2, typename A3> typename imp::Factory<T>::return_t New(A0 arg0, A1 arg1, A2 arg2, A3 arg3) { return imp::Factory<T>::New(arg0, arg1, arg2, arg3); } // Note(agnat): When passing overloaded function pointers to template functions // as generic arguments the compiler needs help in picking the right overload. // These two functions handle New<Function> and New<FunctionTemplate> with // all argument variations. // v8::Function and v8::FunctionTemplate with one or two arguments template <typename T> typename imp::Factory<T>::return_t New( FunctionCallback callback , v8::Local<v8::Value> data = v8::Local<v8::Value>()) { return imp::Factory<T>::New(callback, data); } // v8::Function and v8::FunctionTemplate with three arguments template <typename T, typename A2> typename imp::Factory<T>::return_t New( FunctionCallback callback , v8::Local<v8::Value> data = v8::Local<v8::Value>() , A2 a2 = A2()) { return imp::Factory<T>::New(callback, data, a2); } // Convenience #if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION template <typename T> inline v8::Local<T> New(v8::Handle<T> h); #endif #if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION template <typename T, typename M> inline v8::Local<T> New(v8::Persistent<T, M> const& p); #else template <typename T> inline v8::Local<T> New(v8::Persistent<T> const& p); #endif template <typename T, typename M> inline v8::Local<T> New(Persistent<T, M> const& p); template <typename T> inline v8::Local<T> New(Global<T> const& p); inline imp::Factory<v8::Boolean>::return_t New(bool value) { return New<v8::Boolean>(value); } inline imp::Factory<v8::Int32>::return_t New(int32_t value) { return New<v8::Int32>(value); } inline imp::Factory<v8::Uint32>::return_t New(uint32_t value) { return New<v8::Uint32>(value); } inline imp::Factory<v8::Number>::return_t New(double value) { return New<v8::Number>(value); } inline imp::Factory<v8::String>::return_t New(std::string const& value) { // NOLINT(build/include_what_you_use) return New<v8::String>(value); } inline imp::Factory<v8::String>::return_t New(const char * value, int length) { return New<v8::String>(value, length); } inline imp::Factory<v8::String>::return_t New(const uint16_t * value, int length) { return New<v8::String>(value, length); } inline imp::Factory<v8::String>::return_t New(const char * value) { return New<v8::String>(value); } inline imp::Factory<v8::String>::return_t New(const uint16_t * value) { return New<v8::String>(value); } inline imp::Factory<v8::String>::return_t New(v8::String::ExternalStringResource * value) { return New<v8::String>(value); } inline imp::Factory<v8::String>::return_t New(ExternalOneByteStringResource * value) { return New<v8::String>(value); } inline imp::Factory<v8::RegExp>::return_t New(v8::Local<v8::String> pattern, v8::RegExp::Flags flags) { return New<v8::RegExp>(pattern, flags); } #endif // NAN_NEW_H_