Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Unified Diff: test/mjsunit/regress-4399.js

Issue 1260813008: [d8 Workers] Throw when calling Worker constructor without new (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/d8.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress-4399.js
diff --git a/test/mjsunit/regress/regress-crbug-503698.js b/test/mjsunit/regress-4399.js
similarity index 73%
copy from test/mjsunit/regress/regress-crbug-503698.js
copy to test/mjsunit/regress-4399.js
index 415d1bc81be5ac46fb358ce8ec681b1e5c276e07..a8fdab7d9d62dfa33d34987f8994536e5dc762cc 100644
--- a/test/mjsunit/regress/regress-crbug-503698.js
+++ b/test/mjsunit/regress-4399.js
@@ -2,8 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --invoke-weak-callbacks
if (this.Worker) {
- var __v_6 = new Worker('');
+ assertThrows(function() { Worker.prototype.constructor("55"); });
}
« no previous file with comments | « src/d8.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698