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

Side by Side Diff: third_party/WebKit/Source/core/testing/DummyModulator.cpp

Issue 2886593002: [ES6 modules] ModuleTreeLinker::Instantiate shouldn't proceed on invalid context (Closed)
Patch Set: hasvalidcontxt Created 3 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/testing/DummyModulator.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/testing/DummyModulator.h" 5 #include "core/testing/DummyModulator.h"
6 6
7 #include "bindings/core/v8/ScriptValue.h" 7 #include "bindings/core/v8/ScriptValue.h"
8 #include "core/dom/ScriptModuleResolver.h" 8 #include "core/dom/ScriptModuleResolver.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 NOTREACHED(); 84 NOTREACHED();
85 return nullptr; 85 return nullptr;
86 } 86 }
87 87
88 void DummyModulator::FetchNewSingleModule(const ModuleScriptFetchRequest&, 88 void DummyModulator::FetchNewSingleModule(const ModuleScriptFetchRequest&,
89 ModuleGraphLevel, 89 ModuleGraphLevel,
90 ModuleScriptLoaderClient*) { 90 ModuleScriptLoaderClient*) {
91 NOTREACHED(); 91 NOTREACHED();
92 } 92 }
93 93
94 bool DummyModulator::HasValidContext() {
95 return true;
96 }
97
94 ScriptModule DummyModulator::CompileModule(const String& script, 98 ScriptModule DummyModulator::CompileModule(const String& script,
95 const String& url_str, 99 const String& url_str,
96 AccessControlStatus) { 100 AccessControlStatus) {
97 NOTREACHED(); 101 NOTREACHED();
98 return ScriptModule(); 102 return ScriptModule();
99 } 103 }
100 104
101 ScriptValue DummyModulator::InstantiateModule(ScriptModule) { 105 ScriptValue DummyModulator::InstantiateModule(ScriptModule) {
102 NOTREACHED(); 106 NOTREACHED();
103 return ScriptValue(); 107 return ScriptValue();
104 } 108 }
105 109
106 ScriptValue DummyModulator::GetInstantiationError(const ModuleScript*) { 110 ScriptValue DummyModulator::GetInstantiationError(const ModuleScript*) {
107 NOTREACHED(); 111 NOTREACHED();
108 return ScriptValue(); 112 return ScriptValue();
109 } 113 }
110 114
111 Vector<String> DummyModulator::ModuleRequestsFromScriptModule(ScriptModule) { 115 Vector<String> DummyModulator::ModuleRequestsFromScriptModule(ScriptModule) {
112 NOTREACHED(); 116 NOTREACHED();
113 return Vector<String>(); 117 return Vector<String>();
114 } 118 }
115 119
116 void DummyModulator::ExecuteModule(const ModuleScript*) { 120 void DummyModulator::ExecuteModule(const ModuleScript*) {
117 NOTREACHED(); 121 NOTREACHED();
118 } 122 }
119 123
120 } // namespace blink 124 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/testing/DummyModulator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698