зеркало из https://github.com/mozilla/gecko-dev.git
Bug 735589 - B2G SMS: ctypes undefined error in systemlib.js in xpcshell tests for SMS. r=philikon
This commit is contained in:
Родитель
05444a185f
Коммит
ef809a3067
|
@ -45,6 +45,9 @@ function newWorker(custom_ns) {
|
|||
// The 'self' variable in a worker points to the worker's own namespace.
|
||||
worker_ns.self = worker_ns;
|
||||
|
||||
// systemlibs.js utilizes ctypes for loading native libraries.
|
||||
Cu.import("resource://gre/modules/ctypes.jsm", worker_ns);
|
||||
|
||||
// Copy the custom definitions over.
|
||||
for (let key in custom_ns) {
|
||||
worker_ns[key] = custom_ns[key];
|
||||
|
|
Загрузка…
Ссылка в новой задаче