Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- |
michael@0 | 2 | * vim: set ts=8 sts=4 et sw=4 tw=99: |
michael@0 | 3 | * This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 6 | |
michael@0 | 7 | #ifndef jsversion_h |
michael@0 | 8 | #define jsversion_h |
michael@0 | 9 | |
michael@0 | 10 | /* |
michael@0 | 11 | * JS Capability Macros. |
michael@0 | 12 | */ |
michael@0 | 13 | #define JS_HAS_STR_HTML_HELPERS 1 /* has str.anchor, str.bold, etc. */ |
michael@0 | 14 | #define JS_HAS_OBJ_PROTO_PROP 1 /* has o.__proto__ etc. */ |
michael@0 | 15 | #define JS_HAS_OBJ_WATCHPOINT 1 /* has o.watch and o.unwatch */ |
michael@0 | 16 | #define JS_HAS_TOSOURCE 1 /* has Object/Array toSource method */ |
michael@0 | 17 | #define JS_HAS_CATCH_GUARD 1 /* has exception handling catch guard */ |
michael@0 | 18 | #define JS_HAS_UNEVAL 1 /* has uneval() top-level function */ |
michael@0 | 19 | #define JS_HAS_CONST 1 /* has JS2 const as alternative var */ |
michael@0 | 20 | #define JS_HAS_FUN_EXPR_STMT 1 /* has function expression statement */ |
michael@0 | 21 | #define JS_HAS_NO_SUCH_METHOD 1 /* has o.__noSuchMethod__ handler */ |
michael@0 | 22 | #define JS_HAS_FOR_EACH_IN 1 /* has for each (lhs in iterable) */ |
michael@0 | 23 | #define JS_HAS_GENERATORS 1 /* has yield in generator function */ |
michael@0 | 24 | #define JS_HAS_BLOCK_SCOPE 1 /* has block scope via let/arraycomp */ |
michael@0 | 25 | #define JS_HAS_DESTRUCTURING 2 /* has [a,b] = ... or {p:a,q:b} = ... */ |
michael@0 | 26 | #define JS_HAS_GENERATOR_EXPRS 1 /* has (expr for (lhs in iterable)) */ |
michael@0 | 27 | #define JS_HAS_EXPR_CLOSURES 1 /* has function (formals) listexpr */ |
michael@0 | 28 | |
michael@0 | 29 | /* Support for JS_NewGlobalObject. */ |
michael@0 | 30 | #define JS_HAS_NEW_GLOBAL_OBJECT 1 |
michael@0 | 31 | |
michael@0 | 32 | /* Support for JS_MakeSystemObject. */ |
michael@0 | 33 | #define JS_HAS_MAKE_SYSTEM_OBJECT 1 |
michael@0 | 34 | |
michael@0 | 35 | /* Feature-test macro for evolving destructuring support. */ |
michael@0 | 36 | #define JS_HAS_DESTRUCTURING_SHORTHAND (JS_HAS_DESTRUCTURING == 2) |
michael@0 | 37 | |
michael@0 | 38 | /* |
michael@0 | 39 | * Feature for Object.prototype.__{define,lookup}{G,S}etter__ legacy support; |
michael@0 | 40 | * support likely to be made opt-in at some future time. |
michael@0 | 41 | */ |
michael@0 | 42 | #define JS_OLD_GETTER_SETTER_METHODS 1 |
michael@0 | 43 | |
michael@0 | 44 | #endif /* jsversion_h */ |