Closed Bug 1133412 Opened 9 years ago Closed 9 years ago

C-C TB: calling a builtin Set constructor without new is deprecated and will be forbidden in ES6

Categories

(Thunderbird :: Untriaged, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1129605

People

(Reporter: ishikawa, Unassigned)

Details

While manually testing local build (DEBUG BUILD) of C-C TB
I noticed a series of the warning messages that are printed by TB into error console.

Warning: calling a builtin Set constructor without new is deprecated and will be forbidden in ES6
Source File: file:///home/ishikawa/objdir-tb3/dist/bin/components/mimeJSComponents.js
Line: 325

"///home/ishikawa/objdir-tb3/" is my MOZ_OBJ directory for the local build.

The line refers to the following piece of code:

   // First, collect all of the emails to forcibly delete.
==> let allAddresses = Set();
    for (let element of this.parseDecodedHeader(aOtherAddrs, false)) {
      allAddresses.add(normalize(element.email));
    }

I think this message was printed when I was doing the manual move of a few messages during  testing filter failures.

TIA
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.