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

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

Issue 1118673002: Implement ReadableStream as a V8 extra (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Cleanups; make controller a member instead of arg Created 5 years, 7 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/ScriptState.h ('k') | Source/bindings/scripts/idl_types.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/ScriptState.cpp
diff --git a/Source/bindings/core/v8/ScriptState.cpp b/Source/bindings/core/v8/ScriptState.cpp
index 01756b8fef38a3cde3c4d52170a2bc68ae037a8f..911daa01a2990063eb6a89095be6139af851e5f6 100644
--- a/Source/bindings/core/v8/ScriptState.cpp
+++ b/Source/bindings/core/v8/ScriptState.cpp
@@ -102,6 +102,15 @@ ScriptValue ScriptState::getFromGlobalObject(const char* name)
return ScriptValue(this, v8Value);
}
+ScriptValue ScriptState::getFromExtrasExports(const char* name)
+{
+ v8::HandleScope handleScope(m_isolate);
+ v8::Local<v8::Value> v8Value;
+ if (!context()->GetExtrasExportsObject()->Get(context(), v8AtomicString(isolate(), name)).ToLocal(&v8Value))
+ return ScriptValue();
+ return ScriptValue(this, v8Value);
+}
+
ExecutionContext* ScriptState::executionContext() const
{
v8::HandleScope scope(m_isolate);
« no previous file with comments | « Source/bindings/core/v8/ScriptState.h ('k') | Source/bindings/scripts/idl_types.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698