From: Cheng Zhao Date: Thu, 8 Aug 2013 09:26:20 +0000 (+0800) Subject: Add process.versions["atom-shell"]. X-Git-Tag: v0.3.1~6 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=dd05759c01f9830c2435e01c9bd69f03d2dc88de;p=electron.git Add process.versions["atom-shell"]. --- diff --git a/common/api/atom_bindings.cc b/common/api/atom_bindings.cc index 1f478c12..32afe3bb 100644 --- a/common/api/atom_bindings.cc +++ b/common/api/atom_bindings.cc @@ -6,6 +6,7 @@ #include "base/debug/debugger.h" #include "base/logging.h" +#include "common/atom_version.h" #include "vendor/node/src/node.h" namespace atom { @@ -36,6 +37,9 @@ void AtomBindings::BindTo(v8::Handle process) { node::SetMethod(process, "crash", Crash); node::SetMethod(process, "activateUvLoop", ActivateUVLoop); node::SetMethod(process, "log", Log); + + process->Get(v8::String::New("versions"))->ToObject()-> + Set(v8::String::New("atom-shell"), v8::String::New(ATOM_VERSION_STRING)); } // static