Index: src/d8.cc |
diff --git a/src/d8.cc b/src/d8.cc |
index d55faabe8bcc414624f485a9af2c432516185dd6..5fa7c262994c77076951bf97022d00e2c0119731 100644 |
--- a/src/d8.cc |
+++ b/src/d8.cc |
@@ -1144,6 +1144,7 @@ Local<ObjectTemplate> Shell::CreateGlobalTemplate(Isolate* isolate) { |
worker_fun_template->SetClassName( |
String::NewFromUtf8(isolate, "Worker", NewStringType::kNormal) |
.ToLocalChecked()); |
+ worker_fun_template->ReadOnlyPrototype(); |
worker_fun_template->PrototypeTemplate()->Set( |
String::NewFromUtf8(isolate, "terminate", NewStringType::kNormal) |
.ToLocalChecked(), |