FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
node/src/node_javascript.cc at pointer_bindings · brianmcd/node · GitHub
brianmcd
/
node
Public
forked from
nodejs/node-v0.x-archive
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
node
/
src
/
node_javascript.cc
Copy path
More file actions
More file actions
Latest commit
History
History
History
31 lines (23 loc) · 669 Bytes
Breadcrumbs
node
/
src
/
node_javascript.cc
Copy path
File metadata and controls
31 lines (23 loc) · 669 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
25
26
27
28
29
30
31
#
include
<
v8.h
>
#
include
"
node.h
"
#
include
"
node_natives.h
"
#
include
<
string.h
>
#
include
<
strings.h
>
using
namespace
v8
;
namespace
node
{
const
char
*
MainSource
() {
return
node_native;
}
void
DefineJavaScript
(v8::Handle<v8::Object> target) {
HandleScope scope;
for
(
int
i =
0
; natives[i].
name
; i++) {
if
(natives[i].
source
!= node_native) {
Local<String> name =
String::New
(natives[i].
name
);
//
TODO: Use ExternalAsciiStringResource for source
//
Might need to do some assertions in js2c about chars > 128
Local<String> source =
String::New
(natives[i].
source
);
target->
Set
(name, source);
}
}
}
}
//
namespace node
Back
|
FazBrowse Home
|
New Git URL