Implement the Set builtin object (#2841)

Also implement the missing iterator initializer part from the Map builtin object constructor.

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
Robert Fancsik
2019-05-10 20:28:43 +02:00
committed by GitHub
parent 99c7a4040f
commit 4331e39b9a
22 changed files with 1031 additions and 131 deletions
@@ -15,7 +15,7 @@
#include "ecma-builtins.h"
#include "ecma-exceptions.h"
#include "ecma-map-object.h"
#include "ecma-container-object.h"
#if ENABLED (JERRY_ES2015_BUILTIN_MAP)
@@ -59,7 +59,7 @@ ecma_value_t
ecma_builtin_map_dispatch_construct (const ecma_value_t *arguments_list_p, /**< arguments list */
ecma_length_t arguments_list_len) /**< number of arguments */
{
return ecma_op_map_create (arguments_list_p, arguments_list_len);
return ecma_op_container_create (arguments_list_p, arguments_list_len, false);
} /* ecma_builtin_map_dispatch_construct */
/**