summaryrefslogtreecommitdiff
path: root/src/node_javascript.h
diff options
context:
space:
mode:
authorTom Hughes <tom.hughes@palm.com>2011-03-08 00:00:51 -0600
committerRyan Dahl <ry@tinyclouds.org>2011-03-08 13:56:41 -0800
commit74954ce7d8b4b734302d295d0c816f04a694254e (patch)
tree75b61a90a05d4950c89e78a1a362cb4df4bf33f5 /src/node_javascript.h
parent81d3de7e6db6abe36ac907d8f0fa6dfc01f7bbcd (diff)
downloadandroid-node-v8-74954ce7d8b4b734302d295d0c816f04a694254e.tar.gz
android-node-v8-74954ce7d8b4b734302d295d0c816f04a694254e.tar.bz2
android-node-v8-74954ce7d8b4b734302d295d0c816f04a694254e.zip
Add string class that uses ExternalAsciiStringResource.
Change the natives to use this class instead of creating completely new strings. Reduces memory usage by about 1 MB.
Diffstat (limited to 'src/node_javascript.h')
-rw-r--r--src/node_javascript.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_javascript.h b/src/node_javascript.h
index 4df3bfa31e..9d682bd694 100644
--- a/src/node_javascript.h
+++ b/src/node_javascript.h
@@ -3,6 +3,6 @@
namespace node {
void DefineJavaScript(v8::Handle<v8::Object> target);
-const char* MainSource();
+v8::Handle<v8::String> MainSource();
} // namespace node