Bug 1313490 - Part 3: Remove expression closure from dom/. r=mrbkap

This commit is contained in:
Tooru Fujisawa 2016-11-26 06:41:43 +09:00
Родитель a6acd75a3a
Коммит db7ca4ebd1
2 изменённых файлов: 4 добавлений и 5 удалений

Просмотреть файл

@ -72,10 +72,9 @@ onconnect = function(event) {
throw new Error("'connect' event has data: " + event.data);
}
// The expression closures should trigger a warning in debug builds, but NOT
// fire error events at us. If we ever actually remove expression closures
// (in bug 1083458), we'll need something else to test this case.
(function() "Expected console warning: expression closures are deprecated");
// Statement after return should trigger a warning, but NOT fire error events
// at us.
(function() { return; 1; });
event.ports[0].onmessage = function(event) {
if (!(event instanceof MessageEvent)) {

Просмотреть файл

@ -22,7 +22,7 @@
const sentMessage = "ping";
const errorFilename = href.substring(0, href.lastIndexOf("/") + 1) +
filename;
const errorLine = 91;
const errorLine = 90;
const errorColumn = 0;
var worker = new SharedWorker(filename);