mac: Set process.mas to true for MAS build

This commit is contained in:
Cheng Zhao 2015-09-28 15:07:49 +08:00
parent b62e3554dc
commit 7b57a945f8

View file

@ -72,6 +72,10 @@ void AtomBindings::BindTo(v8::Isolate* isolate,
// Do not warn about deprecated APIs.
dict.Set("noDeprecation", true);
#if defined(MAS_BUILD)
dict.Set("mas", true);
#endif
mate::Dictionary versions;
if (dict.Get("versions", &versions)) {
versions.Set(ATOM_PROJECT_NAME, ATOM_VERSION_STRING);