Node.js  v8.x
Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine
node_util.cc File Reference
#include "node.h"
#include "node_watchdog.h"
#include "v8.h"
#include "env.h"
#include "env-inl.h"
Include dependency graph for node_util.cc:

Go to the source code of this file.

Namespaces

 node
 
 node::util
 

Macros

#define VALUE_METHOD_MAP(V)
 
#define V(_, ucname)
 
#define V(name, _)   &Environment::name,
 
#define V(lcname, ucname)   env->SetMethod(target, #lcname, ucname);
 
#define V(name, _)
 
#define V(name)
 

Functions

Local< Private > IndexToPrivateSymbol (Environment *env, uint32_t index)
 
void StartSigintWatchdog (const FunctionCallbackInfo< Value > &args)
 
void StopSigintWatchdog (const FunctionCallbackInfo< Value > &args)
 
void WatchdogHasPendingSigint (const FunctionCallbackInfo< Value > &args)
 
void CreatePromise (const FunctionCallbackInfo< Value > &args)
 
void PromiseResolve (const FunctionCallbackInfo< Value > &args)
 
void PromiseReject (const FunctionCallbackInfo< Value > &args)
 
void Initialize (Local< Object > target, Local< Value > unused, Local< Context > context)
 

Macro Definition Documentation

◆ V [1/5]

#define V (   _,
  ucname 
)
Value:
static void ucname(const FunctionCallbackInfo<Value>& args) { \
CHECK_EQ(1, args.Length()); \
args.GetReturnValue().Set(args[0]->ucname()); \
}

Definition at line 40 of file node_util.cc.

Referenced by node::util::IndexToPrivateSymbol(), and node::util::Initialize().

◆ V [2/5]

#define V (   name,
 
)    &Environment::name,

Definition at line 40 of file node_util.cc.

◆ V [3/5]

#define V (   lcname,
  ucname 
)    env->SetMethod(target, #lcname, ucname);

Definition at line 40 of file node_util.cc.

◆ V [4/5]

#define V (   name,
 
)
Value:
target->Set(context, \
FIXED_ONE_BYTE_STRING(env->isolate(), #name), \
Integer::NewFromUnsigned(env->isolate(), index++)).FromJust();

Definition at line 40 of file node_util.cc.

◆ V [5/5]

#define V (   name)
Value:
target->Set(context, \
FIXED_ONE_BYTE_STRING(env->isolate(), #name), \
Integer::New(env->isolate(), Promise::PromiseState::name)) \
.FromJust()
MaybeLocal< Object > New(Isolate *isolate, Local< String > string, enum encoding enc)
Definition: node_buffer.cc:241

Definition at line 40 of file node_util.cc.

◆ VALUE_METHOD_MAP

#define VALUE_METHOD_MAP (   V)
Value:
V(isArrayBuffer, IsArrayBuffer) \
V(isAsyncFunction, IsAsyncFunction) \
V(isDataView, IsDataView) \
V(isDate, IsDate) \
V(isExternal, IsExternal) \
V(isMap, IsMap) \
V(isMapIterator, IsMapIterator) \
V(isNativeError, IsNativeError) \
V(isPromise, IsPromise) \
V(isRegExp, IsRegExp) \
V(isSet, IsSet) \
V(isSetIterator, IsSetIterator) \
V(isTypedArray, IsTypedArray) \
V(isUint8Array, IsUint8Array)
#define V(_, ucname)
Definition: node_util.cc:40

Definition at line 23 of file node_util.cc.

Referenced by node::util::Initialize().