Skip to content

Commit 430289b

Browse files
authored
Fix built-in types (#4772)
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
1 parent 77c2602 commit 430289b

File tree

2 files changed

+102
-109
lines changed

2 files changed

+102
-109
lines changed

jerry-core/ecma/builtin-objects/ecma-builtins.c

-7
Original file line numberDiff line numberDiff line change
@@ -384,13 +384,6 @@ ecma_instantiate_builtin (ecma_global_object_t *global_object_p, /**< global obj
384384

385385
ecma_object_type_t obj_type = (ecma_object_type_t) (builtin_desc & ECMA_BUILTIN_OBJECT_TYPE_MASK);
386386

387-
JERRY_ASSERT (obj_type == ECMA_OBJECT_TYPE_GENERAL
388-
|| obj_type == ECMA_OBJECT_TYPE_CLASS
389-
|| obj_type == ECMA_OBJECT_TYPE_ARRAY
390-
|| obj_type == ECMA_OBJECT_TYPE_NATIVE_FUNCTION);
391-
/* TODO: Remove this increase by setting the correct values in the defines. */
392-
obj_type = (ecma_object_type_t) ((int) obj_type + 1);
393-
394387
JERRY_ASSERT (obj_type == ECMA_OBJECT_TYPE_BUILT_IN_GENERAL
395388
|| obj_type == ECMA_OBJECT_TYPE_BUILT_IN_CLASS
396389
|| obj_type == ECMA_OBJECT_TYPE_BUILT_IN_ARRAY

0 commit comments

Comments
 (0)