Bug 1413900 - Remove unused JS capability macros. r=arai
authorTom Schuster <evilpies@gmail.com>
Thu, 02 Nov 2017 14:39:08 +0100
changeset 443095 c1576d8e9cb791665849c94dcfb9d833f90da9a4
parent 443094 91e6ad83776b015b3f8726fde7c4dbdf7bb3c4a0
child 443096 35fc92e75cf75947444747ca5b279cbaf34e051e
push id1618
push userCallek@gmail.com
push dateThu, 11 Jan 2018 17:45:48 +0000
treeherdermozilla-release@882ca853e05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersarai
bugs1413900
milestone58.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1413900 - Remove unused JS capability macros. r=arai
js/src/jsversion.h
--- a/js/src/jsversion.h
+++ b/js/src/jsversion.h
@@ -5,35 +5,22 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #ifndef jsversion_h
 #define jsversion_h
 
 /*
  * JS Capability Macros.
  */
-#define JS_HAS_STR_HTML_HELPERS 1       /* (no longer used) */
 #define JS_HAS_OBJ_PROTO_PROP   1       /* has o.__proto__ etc. */
 #define JS_HAS_TOSOURCE         1       /* has Object/Array toSource method */
 #define JS_HAS_CATCH_GUARD      1       /* has exception handling catch guard */
 #define JS_HAS_UNEVAL           1       /* has uneval() top-level function */
-#define JS_HAS_CONST            1       /* (no longer used) */
-#define JS_HAS_FUN_EXPR_STMT    1       /* (no longer used) */
 #define JS_HAS_FOR_EACH_IN      1       /* has for each (lhs in iterable) */
-#define JS_HAS_GENERATORS       1       /* (no longer used) */
-#define JS_HAS_BLOCK_SCOPE      1       /* (no longer used) */
-#define JS_HAS_DESTRUCTURING    2       /* (no longer used) */
-#define JS_HAS_GENERATOR_EXPRS  1       /* (no longer used) */
 #define JS_HAS_EXPR_CLOSURES    1       /* has function (formals) listexpr */
 
-/* (no longer used) */
-#define JS_HAS_NEW_GLOBAL_OBJECT        1
-
-/* (no longer used) */
-#define JS_HAS_DESTRUCTURING_SHORTHAND  (JS_HAS_DESTRUCTURING == 2)
-
 /*
  * Feature for Object.prototype.__{define,lookup}{G,S}etter__ legacy support;
  * support likely to be made opt-in at some future time.
  */
 #define JS_OLD_GETTER_SETTER_METHODS    1
 
 #endif /* jsversion_h */