Replacing const ecma_char_t* with ecma_string_t*; supporting number-represented string in ecma_string_t.
This commit is contained in:
@@ -62,12 +62,13 @@ ecma_op_create_global_object (void)
|
||||
|
||||
ecma_object_t *glob_obj_p = ecma_create_object (NULL, true, ECMA_OBJECT_TYPE_GENERAL);
|
||||
|
||||
const ecma_char_t* undefined_identifier_p = ecma_get_magic_string (ECMA_MAGIC_STRING_UNDEFINED);
|
||||
ecma_string_t* undefined_identifier_p = ecma_get_magic_string (ECMA_MAGIC_STRING_UNDEFINED);
|
||||
ecma_property_t *undefined_prop_p = ecma_create_named_data_property (glob_obj_p,
|
||||
undefined_identifier_p,
|
||||
ECMA_PROPERTY_NOT_WRITABLE,
|
||||
ECMA_PROPERTY_NOT_ENUMERABLE,
|
||||
ECMA_PROPERTY_NOT_CONFIGURABLE);
|
||||
ecma_deref_ecma_string (undefined_identifier_p);
|
||||
JERRY_ASSERT(ecma_is_value_undefined (undefined_prop_p->u.named_data_property.value));
|
||||
|
||||
TODO(/* Define NaN, Infinity, eval, parseInt, parseFloat, isNaN, isFinite properties */);
|
||||
|
||||
Reference in New Issue
Block a user