зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
61ac53ebb8
Коммит
89bf2bcbfc
|
@ -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");
|
||||
|
|
Загрузка…
Ссылка в новой задаче