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

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

Issue 418823002: Add ScriptValue.v8ValueUnsafe() to access the V8 value without cross-context access check. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/core/inspector/InspectorDebuggerAgent.cpp » ('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 0cd41264f7b328cf172de447c39de0ab3b537ec2..5a44d19317c1793a77a8a8df5ab1e736e52c97ed 100644
--- a/Source/bindings/core/v8/ScriptValue.cpp
+++ b/Source/bindings/core/v8/ScriptValue.cpp
@@ -58,6 +58,13 @@ v8::Handle<v8::Value> ScriptValue::v8Value() const
return m_value->newLocal(isolate());
}
+v8::Handle<v8::Value> ScriptValue::v8ValueUnsafe() const
+{
+ if (isEmpty())
+ return v8::Handle<v8::Value>();
+ return m_value->newLocal(isolate());
+}
+
bool ScriptValue::toString(String& result) const
{
if (isEmpty())
« no previous file with comments | « Source/bindings/core/v8/ScriptValue.h ('k') | Source/core/inspector/InspectorDebuggerAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698