FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nan/test/cpp/returnemptystring.cpp at main · nodejs/nan · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
nodejs
/
nan
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
529
Star
3.4k
Code
Issues
57
Pull requests
15
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
nan
/
test
/
cpp
/
returnemptystring.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
25 lines (19 loc) · 653 Bytes
Breadcrumbs
nan
/
test
/
cpp
/
returnemptystring.cpp
Copy path
File metadata and controls
25 lines (19 loc) · 653 Bytes
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
/*
********************************************************************
* NAN - Native Abstractions for Node.js
*
* Copyright (c) 2018 NAN contributors
*
* MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
*******************************************************************
*/
#
include
<
nan.h
>
using
namespace
Nan
;
//
NOLINT(build/namespaces)
NAN_METHOD
(ReturnEmptyString) {
info.
GetReturnValue
().
SetEmptyString
();
}
NAN_MODULE_INIT
(Init) {
Set
(target
, New<v8::String>(
"
r
"
).
ToLocalChecked
()
,
GetFunction
(New<v8::FunctionTemplate>(ReturnEmptyString)).
ToLocalChecked
()
);
}
NODE_MODULE
(returnemptystring, Init)
Back
|
FazBrowse Home
|
New Git URL