Implementing [[Get]] routine for function objects.

This commit is contained in:
Ruben Ayrapetyan
2014-09-02 22:34:38 +04:00
parent 57058c30ef
commit d45748a001
3 changed files with 74 additions and 8 deletions
+6 -1
View File
@@ -15,6 +15,7 @@
#include "ecma-exceptions.h"
#include "ecma-globals.h"
#include "ecma-function-object.h"
#include "ecma-objects-arguments.h"
#include "ecma-objects-general.h"
#include "ecma-objects.h"
@@ -49,7 +50,6 @@ ecma_op_object_get (ecma_object_t *obj_p, /**< the object */
{
case ECMA_OBJECT_TYPE_GENERAL:
case ECMA_OBJECT_TYPE_ARRAY:
case ECMA_OBJECT_TYPE_BOUND_FUNCTION:
case ECMA_OBJECT_TYPE_STRING:
{
return ecma_op_general_object_get (obj_p, property_name_p);
@@ -60,7 +60,12 @@ ecma_op_object_get (ecma_object_t *obj_p, /**< the object */
return ecma_op_arguments_object_get (obj_p, property_name_p);
}
case ECMA_OBJECT_TYPE_BOUND_FUNCTION:
case ECMA_OBJECT_TYPE_FUNCTION:
{
return ecma_op_function_object_get (obj_p, property_name_p);
}
case ECMA_OBJECT_TYPE_HOST:
{
JERRY_UNIMPLEMENTED();