summaryrefslogtreecommitdiffstats
path: root/gin/runner.cc
diff options
context:
space:
mode:
authorabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-12 00:41:27 +0000
committerabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-12 00:41:27 +0000
commite87f312c1a96c95046034585561932bfa4aae2d4 (patch)
tree4b73e5ff782b9103ac9d282d8eda720c6f14adce /gin/runner.cc
parent23cd38f16a09b542cb40f9d69f5ba86aca868c8b (diff)
downloadchromium_src-e87f312c1a96c95046034585561932bfa4aae2d4.zip
chromium_src-e87f312c1a96c95046034585561932bfa4aae2d4.tar.gz
chromium_src-e87f312c1a96c95046034585561932bfa4aae2d4.tar.bz2
Begin implementing V8 bindings for Mojo
This CL contains the beginnings of JavaScript bindings for the core Mojo system. The approach in this CL is to bind as close to the "metal" as possible so as to self-host as much as possiblem in the VM. I've tried to avoid retaining any state on the C++ side of the bindings, but I didn't quite succeed because V8 requires embedders to retain state in order to access the memory that backs ArrayBuffers. In this CL, I've added some basic bindings for the symbols exported by core.h. Specifically, I've created bindings for CreateMessagePipe, Close, Wait, WaitMany, WriteMessage, and ReadMessage. R=aa@chromium.org, darin@chromium.org BUG=317398 Review URL: https://codereview.chromium.org/59153005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234347 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gin/runner.cc')
-rw-r--r--gin/runner.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gin/runner.cc b/gin/runner.cc
index cf98399..ec701b7 100644
--- a/gin/runner.cc
+++ b/gin/runner.cc
@@ -44,7 +44,7 @@ void Runner::Run(Handle<Script> script) {
}
v8::Handle<v8::Function> Runner::GetMain() {
- Handle<Value> property = global()->Get(StringToV8(isolate_, "main"));
+ Handle<Value> property = global()->Get(StringToSymbol(isolate_, "main"));
if (property.IsEmpty())
return v8::Handle<v8::Function>();
Handle<Function> main;