-
Notifications
You must be signed in to change notification settings - Fork 685
Closed
Labels
apiRelated to the public APIRelated to the public APIecma coreRelated to core ECMA functionalityRelated to core ECMA functionalityenhancementAn improvementAn improvementnormal
Milestone
Description
To improve the configurability of the engine it's needed to provide build time flags for disabling selected built-ins.
Compact profile has possibility for this:
#ifdef CONFIG_ECMA_COMPACT_PROFILE
// #define CONFIG_ECMA_COMPACT_PROFILE_DISABLE_NUMBER_BUILTIN
// #define CONFIG_ECMA_COMPACT_PROFILE_DISABLE_STRING_BUILTIN
// #define CONFIG_ECMA_COMPACT_PROFILE_DISABLE_BOOLEAN_BUILTIN
// #define CONFIG_ECMA_COMPACT_PROFILE_DISABLE_ERROR_BUILTINS
// #define CONFIG_ECMA_COMPACT_PROFILE_DISABLE_ARRAY_BUILTIN
// #define CONFIG_ECMA_COMPACT_PROFILE_DISABLE_MATH_BUILTIN
// #define CONFIG_ECMA_COMPACT_PROFILE_DISABLE_DATE_BUILTIN
// #define CONFIG_ECMA_COMPACT_PROFILE_DISABLE_JSON_BUILTIN
// #define CONFIG_ECMA_COMPACT_PROFILE_DISABLE_REGEXP_BUILTIN
#endif /* CONFIG_ECMA_COMPACT_PROFILE */
//cc @seanshpark
Metadata
Metadata
Assignees
Labels
apiRelated to the public APIRelated to the public APIecma coreRelated to core ECMA functionalityRelated to core ECMA functionalityenhancementAn improvementAn improvementnormal