| 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());
|
| }
|
|
|
|
|