mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-09 08:48:07 +00:00
Bug 1762501 - Replace Ajv with JsonSchema.jsm in services/sync r=markh
Differential Revision: https://phabricator.services.mozilla.com/D142879
This commit is contained in:
parent
8e2d2d800d
commit
eb2370ed95
@ -92,9 +92,10 @@ XPCOMUtils.defineLazyGetter(this, "SyncPingSchema", function() {
|
||||
});
|
||||
|
||||
XPCOMUtils.defineLazyGetter(this, "SyncPingValidator", function() {
|
||||
let { Ajv } = ChromeUtils.import("resource://testing-common/ajv-6.12.6.js");
|
||||
let ajv = new Ajv({ async: "co*" });
|
||||
return ajv.compile(SyncPingSchema);
|
||||
const { JsonSchema } = ChromeUtils.import(
|
||||
"resource://gre/modules/JsonSchema.jsm"
|
||||
);
|
||||
return new JsonSchema.validator(SyncPingSchema);
|
||||
});
|
||||
|
||||
// This is needed for loadAddonTestFunctions().
|
||||
|
Loading…
x
Reference in New Issue
Block a user