fix: add missing "simple" property in several APIs to prevent proxying of return values (#13905)

* fix: add missing "simple" property in several APIs to prevent proxying of return values

* add tests
This commit is contained in:
Milan Burda 2018-08-03 21:07:27 +02:00 committed by Shelley Vohr
parent e0735baff2
commit f904057104
3 changed files with 45 additions and 18 deletions

View file

@ -1114,6 +1114,10 @@ std::vector<mate::Dictionary> App::GetAppMetrics(v8::Isolate* isolate) {
mate::Dictionary memory_dict = mate::Dictionary::CreateEmpty(isolate);
mate::Dictionary cpu_dict = mate::Dictionary::CreateEmpty(isolate);
pid_dict.SetHidden("simple", true);
memory_dict.SetHidden("simple", true);
cpu_dict.SetHidden("simple", true);
memory_dict.Set(
"workingSetSize",
static_cast<double>(