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

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

Issue 2709103004: [Content] Allow V8ValueConverter to convert -0 to an integer (Closed)
Patch Set: Created 3 years, 10 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 | « content/public/child/v8_value_converter.h ('k') | extensions/renderer/send_request_natives.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/resources/schema_utils.js
diff --git a/extensions/renderer/resources/schema_utils.js b/extensions/renderer/resources/schema_utils.js
index 1d1023a00b2502132aeacce4bbf96e5c7dfaa246..8f8e26ab0ddd48f8caba8cdbfb87403a2f68be74 100644
--- a/extensions/renderer/resources/schema_utils.js
+++ b/extensions/renderer/resources/schema_utils.js
@@ -117,9 +117,6 @@ function normalizeArgumentsAndValidate(args, funDef) {
var normalizedArgs = [];
var ai = 0;
for (var si = 0; si < definedSignature.length; ++si) {
- // Handle integer -0 as 0.
- if (JSONSchemaValidator.getType(args[ai]) === 'integer' && args[ai] === 0)
- args[ai] = 0;
if (definedSignature[si] === resolvedSignature[ai])
$Array.push(normalizedArgs, args[ai++]);
else
« no previous file with comments | « content/public/child/v8_value_converter.h ('k') | extensions/renderer/send_request_natives.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698