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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptModule.h

Issue 2788573002: [ES6 modules] Introduce ScriptModule::moduleRequests to access record.[[RequestedModules]] (Closed)
Patch Set: add_tests Created 3 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
Index: third_party/WebKit/Source/bindings/core/v8/ScriptModule.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptModule.h b/third_party/WebKit/Source/bindings/core/v8/ScriptModule.h
index fc51232d7f5d635423021db752bd6d01bb9ff217..282158a3328522ec49e2c324b61fd93c444e7f86 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptModule.h
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptModule.h
@@ -10,6 +10,7 @@
#include "core/CoreExport.h"
#include "v8/include/v8.h"
#include "wtf/Allocator.h"
+#include "wtf/Vector.h"
#include "wtf/text/WTFString.h"
namespace blink {
@@ -29,6 +30,8 @@ class CORE_EXPORT ScriptModule final {
bool instantiate(ScriptState*);
void evaluate(ScriptState*);
+ Vector<String> moduleRequests(ScriptState*);
+
bool isNull() const { return m_module->isEmpty(); }
private:

Powered by Google App Engine
This is Rietveld 408576698