BUG=chromium:518747
R=mstarzinger@chromium.org
LOG=n
Review URL: https://codereview.chromium.org/
1277543006
Cr-Commit-Position: refs/heads/master@{#30099}
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(),
--- /dev/null
+// Copyright 2015 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+if (this.Worker) {
+ Worker.prototype = 12;
+ var __v_6 = new Worker('');
+ __v_6.postMessage([]);
+}