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 : 3.133.128.223
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_IMPLEMENTATION_12_INL_H_ #define NAN_IMPLEMENTATION_12_INL_H_ //============================================================================== // node v0.11 implementation //============================================================================== namespace imp { //=== Array ==================================================================== Factory<v8::Array>::return_t Factory<v8::Array>::New() { return v8::Array::New(v8::Isolate::GetCurrent()); } Factory<v8::Array>::return_t Factory<v8::Array>::New(int length) { return v8::Array::New(v8::Isolate::GetCurrent(), length); } //=== Boolean ================================================================== Factory<v8::Boolean>::return_t Factory<v8::Boolean>::New(bool value) { return v8::Boolean::New(v8::Isolate::GetCurrent(), value); } //=== Boolean Object =========================================================== Factory<v8::BooleanObject>::return_t Factory<v8::BooleanObject>::New(bool value) { #if (NODE_MODULE_VERSION >= NODE_6_0_MODULE_VERSION) return v8::BooleanObject::New( v8::Isolate::GetCurrent(), value).As<v8::BooleanObject>(); #else return v8::BooleanObject::New(value).As<v8::BooleanObject>(); #endif } //=== Context ================================================================== Factory<v8::Context>::return_t Factory<v8::Context>::New( v8::ExtensionConfiguration* extensions , v8::Local<v8::ObjectTemplate> tmpl , v8::Local<v8::Value> obj) { return v8::Context::New(v8::Isolate::GetCurrent(), extensions, tmpl, obj); } //=== Date ===================================================================== #if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \ (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3)) Factory<v8::Date>::return_t Factory<v8::Date>::New(double value) { v8::Isolate *isolate = v8::Isolate::GetCurrent(); v8::EscapableHandleScope scope(isolate); return scope.Escape(v8::Date::New(isolate->GetCurrentContext(), value) .FromMaybe(v8::Local<v8::Value>()).As<v8::Date>()); } #else Factory<v8::Date>::return_t Factory<v8::Date>::New(double value) { return v8::Date::New(v8::Isolate::GetCurrent(), value).As<v8::Date>(); } #endif //=== External ================================================================= Factory<v8::External>::return_t Factory<v8::External>::New(void * value) { return v8::External::New(v8::Isolate::GetCurrent(), value); } //=== Function ================================================================= Factory<v8::Function>::return_t Factory<v8::Function>::New( FunctionCallback callback , v8::Local<v8::Value> data) { v8::Isolate *isolate = v8::Isolate::GetCurrent(); v8::EscapableHandleScope scope(isolate); v8::Local<v8::ObjectTemplate> tpl = v8::ObjectTemplate::New(isolate); tpl->SetInternalFieldCount(imp::kFunctionFieldCount); v8::Local<v8::Object> obj = NewInstance(tpl).ToLocalChecked(); obj->SetInternalField( imp::kFunctionIndex , v8::External::New(isolate, reinterpret_cast<void *>(callback))); v8::Local<v8::Value> val = v8::Local<v8::Value>::New(isolate, data); if (!val.IsEmpty()) { obj->SetInternalField(imp::kDataIndex, val); } return scope.Escape(v8::Function::New( isolate , imp::FunctionCallbackWrapper , obj)); } //=== Function Template ======================================================== Factory<v8::FunctionTemplate>::return_t Factory<v8::FunctionTemplate>::New( FunctionCallback callback , v8::Local<v8::Value> data , v8::Local<v8::Signature> signature) { v8::Isolate *isolate = v8::Isolate::GetCurrent(); if (callback) { v8::EscapableHandleScope scope(isolate); v8::Local<v8::ObjectTemplate> tpl = v8::ObjectTemplate::New(isolate); tpl->SetInternalFieldCount(imp::kFunctionFieldCount); v8::Local<v8::Object> obj = NewInstance(tpl).ToLocalChecked(); obj->SetInternalField( imp::kFunctionIndex , v8::External::New(isolate, reinterpret_cast<void *>(callback))); v8::Local<v8::Value> val = v8::Local<v8::Value>::New(isolate, data); if (!val.IsEmpty()) { obj->SetInternalField(imp::kDataIndex, val); } return scope.Escape(v8::FunctionTemplate::New( isolate , imp::FunctionCallbackWrapper , obj , signature)); } else { return v8::FunctionTemplate::New(isolate, 0, data, signature); } } //=== Number =================================================================== Factory<v8::Number>::return_t Factory<v8::Number>::New(double value) { return v8::Number::New(v8::Isolate::GetCurrent(), value); } //=== Number Object ============================================================ Factory<v8::NumberObject>::return_t Factory<v8::NumberObject>::New(double value) { return v8::NumberObject::New( v8::Isolate::GetCurrent() , value).As<v8::NumberObject>(); } //=== Integer, Int32 and Uint32 ================================================ template <typename T> typename IntegerFactory<T>::return_t IntegerFactory<T>::New(int32_t value) { return To<T>(T::New(v8::Isolate::GetCurrent(), value)); } template <typename T> typename IntegerFactory<T>::return_t IntegerFactory<T>::New(uint32_t value) { return To<T>(T::NewFromUnsigned(v8::Isolate::GetCurrent(), value)); } Factory<v8::Uint32>::return_t Factory<v8::Uint32>::New(int32_t value) { return To<v8::Uint32>( v8::Uint32::NewFromUnsigned(v8::Isolate::GetCurrent(), value)); } Factory<v8::Uint32>::return_t Factory<v8::Uint32>::New(uint32_t value) { return To<v8::Uint32>( v8::Uint32::NewFromUnsigned(v8::Isolate::GetCurrent(), value)); } //=== Object =================================================================== Factory<v8::Object>::return_t Factory<v8::Object>::New() { return v8::Object::New(v8::Isolate::GetCurrent()); } //=== Object Template ========================================================== Factory<v8::ObjectTemplate>::return_t Factory<v8::ObjectTemplate>::New() { return v8::ObjectTemplate::New(v8::Isolate::GetCurrent()); } //=== RegExp =================================================================== #if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \ (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3)) Factory<v8::RegExp>::return_t Factory<v8::RegExp>::New( v8::Local<v8::String> pattern , v8::RegExp::Flags flags) { v8::Isolate *isolate = v8::Isolate::GetCurrent(); v8::EscapableHandleScope scope(isolate); return scope.Escape( v8::RegExp::New(isolate->GetCurrentContext(), pattern, flags) .FromMaybe(v8::Local<v8::RegExp>())); } #else Factory<v8::RegExp>::return_t Factory<v8::RegExp>::New( v8::Local<v8::String> pattern , v8::RegExp::Flags flags) { return v8::RegExp::New(pattern, flags); } #endif //=== Script =================================================================== #if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \ (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3)) Factory<v8::Script>::return_t Factory<v8::Script>::New( v8::Local<v8::String> source) { v8::Isolate *isolate = v8::Isolate::GetCurrent(); v8::EscapableHandleScope scope(isolate); v8::ScriptCompiler::Source src(source); return scope.Escape( v8::ScriptCompiler::Compile(isolate->GetCurrentContext(), &src) .FromMaybe(v8::Local<v8::Script>())); } Factory<v8::Script>::return_t Factory<v8::Script>::New( v8::Local<v8::String> source , v8::ScriptOrigin const& origin) { v8::Isolate *isolate = v8::Isolate::GetCurrent(); v8::EscapableHandleScope scope(isolate); v8::ScriptCompiler::Source src(source, origin); return scope.Escape( v8::ScriptCompiler::Compile(isolate->GetCurrentContext(), &src) .FromMaybe(v8::Local<v8::Script>())); } #else Factory<v8::Script>::return_t Factory<v8::Script>::New( v8::Local<v8::String> source) { v8::ScriptCompiler::Source src(source); return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src); } Factory<v8::Script>::return_t Factory<v8::Script>::New( v8::Local<v8::String> source , v8::ScriptOrigin const& origin) { v8::ScriptCompiler::Source src(source, origin); return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src); } #endif //=== Signature ================================================================ Factory<v8::Signature>::return_t Factory<v8::Signature>::New(Factory<v8::Signature>::FTH receiver) { return v8::Signature::New(v8::Isolate::GetCurrent(), receiver); } //=== String =================================================================== Factory<v8::String>::return_t Factory<v8::String>::New() { return v8::String::Empty(v8::Isolate::GetCurrent()); } #if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \ (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3)) Factory<v8::String>::return_t Factory<v8::String>::New(const char * value, int length) { return v8::String::NewFromUtf8( v8::Isolate::GetCurrent(), value, v8::NewStringType::kNormal, length); } Factory<v8::String>::return_t Factory<v8::String>::New(std::string const& value) { assert(value.size() <= INT_MAX && "string too long"); return v8::String::NewFromUtf8(v8::Isolate::GetCurrent(), value.data(), v8::NewStringType::kNormal, static_cast<int>(value.size())); } Factory<v8::String>::return_t Factory<v8::String>::New(const uint16_t * value, int length) { return v8::String::NewFromTwoByte(v8::Isolate::GetCurrent(), value, v8::NewStringType::kNormal, length); } Factory<v8::String>::return_t Factory<v8::String>::New(v8::String::ExternalStringResource * value) { return v8::String::NewExternalTwoByte(v8::Isolate::GetCurrent(), value); } Factory<v8::String>::return_t Factory<v8::String>::New(ExternalOneByteStringResource * value) { return v8::String::NewExternalOneByte(v8::Isolate::GetCurrent(), value); } #else Factory<v8::String>::return_t Factory<v8::String>::New(const char * value, int length) { return v8::String::NewFromUtf8(v8::Isolate::GetCurrent(), value, v8::String::kNormalString, length); } Factory<v8::String>::return_t Factory<v8::String>::New( std::string const& value) /* NOLINT(build/include_what_you_use) */ { assert(value.size() <= INT_MAX && "string too long"); return v8::String::NewFromUtf8(v8::Isolate::GetCurrent(), value.data(), v8::String::kNormalString, static_cast<int>(value.size())); } Factory<v8::String>::return_t Factory<v8::String>::New(const uint16_t * value, int length) { return v8::String::NewFromTwoByte(v8::Isolate::GetCurrent(), value, v8::String::kNormalString, length); } Factory<v8::String>::return_t Factory<v8::String>::New(v8::String::ExternalStringResource * value) { return v8::String::NewExternal(v8::Isolate::GetCurrent(), value); } Factory<v8::String>::return_t Factory<v8::String>::New(ExternalOneByteStringResource * value) { return v8::String::NewExternal(v8::Isolate::GetCurrent(), value); } #endif //=== String Object ============================================================ Factory<v8::StringObject>::return_t Factory<v8::StringObject>::New(v8::Local<v8::String> value) { #if V8_MAJOR_VERSION >= 7 return v8::StringObject::New(v8::Isolate::GetCurrent(), value).As<v8::StringObject>(); #else return v8::StringObject::New(value).As<v8::StringObject>(); #endif } //=== Unbound Script =========================================================== #if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \ (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3)) Factory<v8::UnboundScript>::return_t Factory<v8::UnboundScript>::New(v8::Local<v8::String> source) { v8::ScriptCompiler::Source src(source); return v8::ScriptCompiler::CompileUnboundScript( v8::Isolate::GetCurrent(), &src); } Factory<v8::UnboundScript>::return_t Factory<v8::UnboundScript>::New( v8::Local<v8::String> source , v8::ScriptOrigin const& origin) { v8::ScriptCompiler::Source src(source, origin); return v8::ScriptCompiler::CompileUnboundScript( v8::Isolate::GetCurrent(), &src); } #else Factory<v8::UnboundScript>::return_t Factory<v8::UnboundScript>::New(v8::Local<v8::String> source) { v8::ScriptCompiler::Source src(source); return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src); } Factory<v8::UnboundScript>::return_t Factory<v8::UnboundScript>::New( v8::Local<v8::String> source , v8::ScriptOrigin const& origin) { v8::ScriptCompiler::Source src(source, origin); return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src); } #endif } // end of namespace imp //=== Presistents and Handles ================================================== #if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION template <typename T> inline v8::Local<T> New(v8::Handle<T> h) { return v8::Local<T>::New(v8::Isolate::GetCurrent(), h); } #endif template <typename T, typename M> inline v8::Local<T> New(v8::Persistent<T, M> const& p) { return v8::Local<T>::New(v8::Isolate::GetCurrent(), p); } template <typename T, typename M> inline v8::Local<T> New(Persistent<T, M> const& p) { return v8::Local<T>::New(v8::Isolate::GetCurrent(), p); } template <typename T> inline v8::Local<T> New(Global<T> const& p) { return v8::Local<T>::New(v8::Isolate::GetCurrent(), p); } #endif // NAN_IMPLEMENTATION_12_INL_H_