Closed Bug 932216 Opened 11 years ago Closed 11 years ago

Remove code conditional on JS_HAS_CONST, JS_HAS_BLOCK_SCOPE

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla28

People

(Reporter: wingo, Assigned: wingo)

References

Details

(Whiteboard: [qa-])

Attachments

(1 file)

Const is a part of the web.  Let will be a part of ES6, somehow.  Remove code conditional on these defines, and reword Keywords.h to reflect 1JS.
Assignee: nobody → wingo
Attachment #823911 - Flags: review?(jorendorff)
Blocks: 932276
Perhaps JS_HAS_DESTRUCTURING as well?
Attachment #823911 - Flags: review?(jorendorff) → review+
(In reply to Andy Wingo [:wingo] from comment #0)
> Const is a part of the web.

Oh?
(In reply to :Ms2ger from comment #3)
> (In reply to Andy Wingo [:wingo] from comment #0)
> > Const is a part of the web.
> 
> Oh?

Sure.  Not defined, but treating it as a token is web-compatible.  Also it will be in ES6.
Keywords: checkin-needed
(In reply to Luke Wagner [:luke] from comment #2)
> Perhaps JS_HAS_DESTRUCTURING as well?

A good idea; didn't think of it because I was just concerned about the keyword list :)
https://hg.mozilla.org/mozilla-central/rev/13bd430455d4
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: