Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(379)

Unified Diff: extensions/renderer/resources/json_schema.js

Issue 1928783005: [Extensions] Finish freezing schema (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/renderer/resources/event.js ('k') | extensions/renderer/resources/schema_utils.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/resources/json_schema.js
diff --git a/extensions/renderer/resources/json_schema.js b/extensions/renderer/resources/json_schema.js
index 135b0ee74d2144614639f14c18f8a13d374940c2..447d1ea21c232df7e5c2252383437caf095300d7 100644
--- a/extensions/renderer/resources/json_schema.js
+++ b/extensions/renderer/resources/json_schema.js
@@ -330,7 +330,7 @@ JSONSchemaValidator.prototype.validateEnum = function(instance, schema, path) {
}
this.addError(path, "invalidEnum",
- [schema.enum.map(enumToString).join(", ")]);
+ [$Array.join($Array.map(schema.enum, enumToString), ", ")]);
return false;
};
« no previous file with comments | « extensions/renderer/resources/event.js ('k') | extensions/renderer/resources/schema_utils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698