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

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

Issue 482603002: Unify logic of stack trace generation for extension errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add $Error and $String.indexOf to safe builtins Created 6 years, 4 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
Index: extensions/renderer/resources/json_schema.js
diff --git a/extensions/renderer/resources/json_schema.js b/extensions/renderer/resources/json_schema.js
index 67c30c9ac0cbc6e81028b8d980cd4c8a95d96b5e..ceaf3991a1a7f063323bc66c088332869fd98317 100644
--- a/extensions/renderer/resources/json_schema.js
+++ b/extensions/renderer/resources/json_schema.js
@@ -153,7 +153,7 @@ JSONSchemaValidator.getType = function(value) {
JSONSchemaValidator.prototype.addTypes = function(typeOrTypeList) {
function addType(validator, type) {
if (!type.id)
- throw new Error("Attempt to addType with missing 'id' property");
+ throw new $Error.self("Attempt to addType with missing 'id' property");
validator.types[type.id] = type;
}

Powered by Google App Engine
This is Rietveld 408576698