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;
|
mate::Dictionary versions;
|
||||||
if (dict.Get("versions", &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(ATOM_PROJECT_NAME, ATOM_VERSION_STRING);
|
||||||
versions.Set("chrome", CHROME_VERSION_STRING);
|
versions.Set("chrome", CHROME_VERSION_STRING);
|
||||||
|
|
||||||
|
|
|
@ -87,6 +87,10 @@ process.versions['atom-shell']
|
||||||
process.versions.electron
|
process.versions.electron
|
||||||
```
|
```
|
||||||
|
|
||||||
|
* `process.versions.electron` and `process.version.chrome` will be made
|
||||||
|
read-only properties for consistency with the other `process.versions`
|
||||||
|
properties set by Node.
|
||||||
|
|
||||||
## `Tray`
|
## `Tray`
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue