Bug 1350503 - Wrap the performance actor's sharedLibraries value inside an object so that it can be transferred through the debugger protocol. r=gregtatum

MozReview-Commit-ID: 3cXfaSrWFJW

--HG--
extra : rebase_source : 7dca681aa1b43e9351e398966416614e656f78e0
This commit is contained in:
Markus Stange 2017-04-20 16:10:47 -04:00
Родитель 61ac53ebb8
Коммит 89bf2bcbfc
2 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -253,7 +253,9 @@ const ProfilerManager = (function () {
* profiler is stopped.
*/
get sharedLibraries() {
return nsIProfilerModule.sharedLibraries;
return {
sharedLibraries: nsIProfilerModule.sharedLibraries
};
},
/**

Просмотреть файл

@ -21,7 +21,8 @@ function run_test() {
}
function test_sharedlibraries(client, actor, callback) {
client.request({ to: actor, type: "sharedLibraries" }, libs => {
client.request({ to: actor, type: "sharedLibraries" }, response => {
const libs = response.sharedLibraries;
do_check_eq(typeof libs, "object");
do_check_true(Array.isArray(libs));
do_check_eq(typeof libs, "object");