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

Unified Diff: third_party/WebKit/Source/core/dom/ModuleScript.cpp

Issue 2810013002: [Module] Add layout tests
Patch Set: Rebase Created 3 years, 8 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/core/dom/ModuleScript.cpp
diff --git a/third_party/WebKit/Source/core/dom/ModuleScript.cpp b/third_party/WebKit/Source/core/dom/ModuleScript.cpp
index a0f6a396a78fb14fe72bdbab795330f2c96185aa..43959612670f14417584df240498bb3d6d33929a 100644
--- a/third_party/WebKit/Source/core/dom/ModuleScript.cpp
+++ b/third_party/WebKit/Source/core/dom/ModuleScript.cpp
@@ -7,6 +7,7 @@
#include "bindings/core/v8/ScriptState.h"
#include "bindings/core/v8/ScriptValue.h"
#include "v8/include/v8.h"
+#include "bindings/core/v8/V8BindingForCore.h"
namespace blink {
@@ -22,6 +23,9 @@ void ModuleScript::SetInstantiationErrorAndClearRecord(ScriptValue error) {
DCHECK(!error.IsEmpty());
{
ScriptState::Scope scope(error.GetScriptState());
+ // String str = ToCoreString(
+ // error.V8Value()->ToString(error.GetContext()).ToLocalChecked());
+ // fprintf(stderr, "[%s]\n", str.Utf8().Data());
instantiation_error_.Set(error.GetIsolate(), error.V8Value());
}
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/dom/error-for-inline-scripts-iframe.html ('k') | threejs-bootstrap.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698