FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
node/src/node_api_internals.h at main · fetchapi/node · GitHub
fetchapi
/
node
Public
forked from
nodejs/node
Notifications
You must be signed in to change notification settings
Fork
1
Star
0
Code
Pull requests
1
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
node
/
src
/
node_api_internals.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
42 lines (32 loc) · 1.24 KB
Breadcrumbs
node
/
src
/
node_api_internals.h
Copy path
File metadata and controls
42 lines (32 loc) · 1.24 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#
ifndef
SRC_NODE_API_INTERNALS_H_
#
define
SRC_NODE_API_INTERNALS_H_
#
include
"
v8.h
"
#
define
NAPI_EXPERIMENTAL
#
include
"
env-inl.h
"
#
include
"
js_native_api_v8.h
"
#
include
"
node_api.h
"
#
include
"
util-inl.h
"
struct
node_napi_env__
:
public
napi_env__
{
node_napi_env__
(v8::Local<v8::Context> context,
const
std::string& module_filename,
int32_t
module_api_version);
bool
can_call_into_js
()
const
override
;
void
CallFinalizer
(napi_finalize cb,
void
* data,
void
* hint)
override
;
template
<
bool
enforceUncaughtExceptionPolicy>
void
CallFinalizer
(napi_finalize cb,
void
* data,
void
* hint);
void
EnqueueFinalizer
(v8impl::RefTracker* finalizer)
override
;
void
DrainFinalizerQueue
();
void
trigger_fatal_exception
(v8::Local<v8::Value> local_err);
template
<
bool
enforceUncaughtExceptionPolicy,
typename
T>
void
CallbackIntoModule
(T&& call);
void
DeleteMe
()
override
;
inline
node::Environment*
node_env
()
const
{
return
node::Environment::GetCurrent
(
context
());
}
inline
const
char
*
GetFilename
()
const
{
return
filename.
c_str
(); }
std::string filename;
bool
destructing =
false
;
bool
finalization_scheduled =
false
;
};
using
node_napi_env = node_napi_env__*;
#
endif
//
SRC_NODE_API_INTERNALS_H_
Back
|
FazBrowse Home
|
New Git URL