зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1313490 - Part 3: Remove expression closure from dom/. r=mrbkap
This commit is contained in:
Родитель
a6acd75a3a
Коммит
db7ca4ebd1
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче