Calling routine for instantiating built-ins' properties only if property name is a magic string.

This commit is contained in:
Ruben Ayrapetyan committed 2014-11-14 14:40:36 +03:00
1 parent dd1e9ca3e4
commit 82fe067fc9
2 files changed
+6 -5

No files matched your search

+4 -1
View File
@@ -104,8 +104,11 @@ ecma_op_object_get_own_property (ecma_object_t *obj_p, /**< the object */
if (unlikely (prop_p == NULL))
{
ecma_magic_string_id_t magic_string_id __unused;
if (is_builtin
&& type != ECMA_OBJECT_TYPE_BUILT_IN_FUNCTION)
&& type != ECMA_OBJECT_TYPE_BUILT_IN_FUNCTION
&& ecma_is_string_magic (property_name_p, &magic_string_id))
{
prop_p = ecma_builtin_try_to_instantiate_property (obj_p, property_name_p);
}