We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae87fec commit 01d4694Copy full SHA for 01d4694
3 files changed
binding.gyp
@@ -16,6 +16,7 @@
16
'src/tree.cc',
17
'src/tree_entry.cc',
18
'src/threads.cc'
19
+ 'src/functions/string.cc'
20
],
21
'todosources': [
22
include/functions/string.h
@@ -0,0 +1,8 @@
1
+#include <v8.h>
2
+
3
+#ifndef STRING_FUNCTIONS
4
+#define STRING_FUNCTIONS
5
6
+std::string stringArgToString(const v8::Local<v8::Value> arg);
7
8
+#endif
src/functions/string.cc
@@ -0,0 +1,9 @@
+#include <string>
+#include "../../include/functions/string.h"
+std::string stringArgToString(const v8::Local<v8::Value> arg) {
+ v8::String::Utf8Value param1(arg);
+ return std::string(*param1);
9
+}
0 commit comments