Index: src/wasm/wasm-module.cc |
diff --git a/src/wasm/wasm-module.cc b/src/wasm/wasm-module.cc |
index 74fa1bf93031e2ab31088ca0b8696f36078a04b8..346c49a2db7a702c71adf89feef7c3fe7c597134 100644 |
--- a/src/wasm/wasm-module.cc |
+++ b/src/wasm/wasm-module.cc |
@@ -730,6 +730,8 @@ Handle<Script> CreateWasmScript(Isolate* isolate, |
const ModuleWireBytes& wire_bytes) { |
Handle<Script> script = |
isolate->factory()->NewScript(isolate->factory()->empty_string()); |
+ FixedArray* array = isolate->native_context()->embedder_data(); |
+ script->set_context_data(array->get(v8::Context::kDebugIdIndex)); |
script->set_type(Script::TYPE_WASM); |
int hash = StringHasher::HashSequentialString( |