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.
Created attachment 823911 [details] [diff] [review] Remove code conditional on JS_HAS_CONST, JS_HAS_BLOCK_SCOPE
Attachment #823911 - Flags: review?(jorendorff)
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.
(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 :)
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
You need to log in before you can comment on or make changes to this bug.