mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
src: lint c++ code
This commit is contained in:
1 parent
3c6b5d5df1
commit
8e29ce9f13
63 files changed
+967
-878
No files matched your search
@@ -28,22 +28,26 @@
|
||||
#include <strings.h>
|
||||
#endif
|
||||
|
||||
using namespace v8;
|
||||
|
||||
namespace node {
|
||||
|
||||
using v8::Handle;
|
||||
using v8::HandleScope;
|
||||
using v8::Local;
|
||||
using v8::Object;
|
||||
using v8::String;
|
||||
|
||||
Handle<String> MainSource() {
|
||||
return String::New(node_native, sizeof(node_native) - 1);
|
||||
}
|
||||
|
||||
void DefineJavaScript(v8::Handle<v8::Object> target) {
|
||||
void DefineJavaScript(Handle<Object> target) {
|
||||
HandleScope scope(node_isolate);
|
||||
|
||||
for (int i = 0; natives[i].name; i++) {
|
||||
if (natives[i].source != node_native) {
|
||||
Local<String> name = String::New(natives[i].name);
|
||||
Handle<String> source = String::New(natives[i].source,
|
||||
natives[i].source_len);
|
||||
natives[i].source_len);
|
||||
target->Set(name, source);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user