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

Unified Diff: Source/bindings/core/v8/ScriptValue.cpp

Issue 1020233002: [bindings] [devtools] Migrate the usage of ScriptValue.toJSONValue() to ScriptValue::to<JSONValuePt… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing Created 5 years, 9 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 | « Source/bindings/core/v8/ScriptValue.h ('k') | Source/bindings/core/v8/V8Binding.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/ScriptValue.cpp
diff --git a/Source/bindings/core/v8/ScriptValue.cpp b/Source/bindings/core/v8/ScriptValue.cpp
index b698aa3e555191dfbd4d9283d8f472a74fa9bd31..a77fc48ce6018e30990c2e4d312aeae96eab1b19 100644
--- a/Source/bindings/core/v8/ScriptValue.cpp
+++ b/Source/bindings/core/v8/ScriptValue.cpp
@@ -74,13 +74,6 @@ bool ScriptValue::toString(String& result) const
return true;
}
-PassRefPtr<JSONValue> ScriptValue::toJSONValue(ScriptState* scriptState) const
-{
- ASSERT(scriptState->contextIsValid());
- ScriptState::Scope scope(scriptState);
- return v8ToJSONValue(scriptState->isolate(), v8Value(), JSONValue::maxDepth);
-}
-
ScriptValue ScriptValue::createNull(ScriptState* scriptState)
{
return ScriptValue(scriptState, v8::Null(scriptState->isolate()));
« no previous file with comments | « Source/bindings/core/v8/ScriptValue.h ('k') | Source/bindings/core/v8/V8Binding.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698