Skip to content

Add configuration option for disabling selected built-in objects. #88

Closed
@egavrin

Description

@egavrin

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 APIecma coreRelated to core ECMA functionalityenhancementAn improvementnormal

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions