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

Unified Diff: content/child/v8_value_converter_impl.h

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
Index: content/child/v8_value_converter_impl.h
diff --git a/content/child/v8_value_converter_impl.h b/content/child/v8_value_converter_impl.h
index 0cc996e45f3c8b3aaaf6ce28fc80aede7d49e81f..1fbc98927638f6cd56ec64703d14ea3b79c1c527 100644
--- a/content/child/v8_value_converter_impl.h
+++ b/content/child/v8_value_converter_impl.h
@@ -30,6 +30,7 @@ class CONTENT_EXPORT V8ValueConverterImpl : public V8ValueConverter {
void SetRegExpAllowed(bool val) override;
void SetFunctionAllowed(bool val) override;
void SetStripNullFromObjects(bool val) override;
+ void SetConvertNegativeZeroToInt(bool val) override;
void SetStrategy(Strategy* strategy) override;
v8::Local<v8::Value> ToV8Value(
const base::Value* value,
@@ -87,6 +88,9 @@ class CONTENT_EXPORT V8ValueConverterImpl : public V8ValueConverter {
// into Values.
bool strip_null_from_objects_;
+ // If true, convert -0 to an integer value (instead of a double).
+ bool convert_negative_zero_to_int_;
+
bool avoid_identity_hash_for_testing_;
// Strategy object that changes the converter's behavior.
« no previous file with comments | « chrome/test/data/extensions/platform_apps/window_api/test.js ('k') | content/child/v8_value_converter_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698