Reviewers: Michael Starzinger,
Description:
[d8 Workers] Make Worker prototype read-only
BUG=chromium:518747
[email protected]
LOG=n
Please review this at https://codereview.chromium.org/1277543006/
Base URL: https://chromium.googlesource.com/v8/v8.git@master
Affected files (+1, -0 lines):
M src/d8.cc
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(),
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.