Combine ARRAYBUFFER and TYPEDARRAY macros together (#1699)

Change CONFIG_DISABLE_ES2015_ARRAYBUFFER_BUILTIN to
CONFIG_DISABLE_ES2015_TYPEDARRAY_BUILTIN
Because typedarray depends on arraybuffer and it doesn't make sense to
enable arraybuffer only.

JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang zidong.jiang@intel.com
This commit is contained in:
Zidong Jiang
2017-03-30 21:22:22 +08:00
committed by GitHub
parent 3ff9a7de8a
commit 41c63e08b1
10 changed files with 15 additions and 24 deletions
@@ -298,7 +298,7 @@ BUILTIN (ECMA_BUILTIN_ID_TYPE_ERROR_THROWER,
true,
type_error_thrower)
#ifndef CONFIG_DISABLE_ES2015_ARRAYBUFFER_BUILTIN
#ifndef CONFIG_DISABLE_ES2015_TYPEDARRAY_BUILTIN
/* The ArrayBuffer.prototype object (ES2015 24.1.4) */
BUILTIN (ECMA_BUILTIN_ID_ARRAYBUFFER_PROTOTYPE,
@@ -315,9 +315,6 @@ BUILTIN (ECMA_BUILTIN_ID_ARRAYBUFFER,
true,
true,
arraybuffer)
#endif /* !CONFIG_DISABLE_ES2015_ARRAYBUFFER_BUILTIN */
#ifndef CONFIG_DISABLE_ES2015_TYPEDARRAY_BUILTIN
/* The %TypedArrayPrototype% object (ES2015 24.2.3) */
BUILTIN (ECMA_BUILTIN_ID_TYPEDARRAY_PROTOTYPE,