Add read-only version to planned 2.0 API
This commit is contained in:
parent
726bab0293
commit
323edb9d53
2 changed files with 5 additions and 0 deletions
|
@ -112,6 +112,7 @@ void AtomBindings::BindTo(v8::Isolate* isolate,
|
|||
|
||||
mate::Dictionary versions;
|
||||
if (dict.Get("versions", &versions)) {
|
||||
// TODO(kevinsawicki): Make read-only in 2.0 to match node
|
||||
versions.Set(ATOM_PROJECT_NAME, ATOM_VERSION_STRING);
|
||||
versions.Set("chrome", CHROME_VERSION_STRING);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue