From dd05759c01f9830c2435e01c9bd69f03d2dc88de Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Thu, 8 Aug 2013 17:26:20 +0800 Subject: [PATCH] Add process.versions["atom-shell"]. --- common/api/atom_bindings.cc | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.43.0