From f1d33b9236230ac9974184897343b927ca00d0c2 Mon Sep 17 00:00:00 2001 From: Ruben Ayrapetyan Date: Thu, 17 Jul 2014 22:02:57 +0400 Subject: [PATCH] Inverting properties' attributes' values in corresponding enums - now not_{writable,configurable,enumerable} correspond to 0 and {writable,configurable,enumerable} to 1. --- src/libecmaobjects/ecma-globals.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/libecmaobjects/ecma-globals.h b/src/libecmaobjects/ecma-globals.h index 9f833a569..3b9a05990 100644 --- a/src/libecmaobjects/ecma-globals.h +++ b/src/libecmaobjects/ecma-globals.h @@ -160,8 +160,8 @@ typedef enum { */ typedef enum { - ECMA_PROPERTY_WRITABLE, /**< property's 'Writable' attribute is true */ - ECMA_PROPERTY_NOT_WRITABLE /**< property's 'Writable' attribute is false */ + ECMA_PROPERTY_NOT_WRITABLE, /**< property's 'Writable' attribute is false */ + ECMA_PROPERTY_WRITABLE /**< property's 'Writable' attribute is true */ } ecma_PropertyWritableValue_t; /** @@ -169,8 +169,8 @@ typedef enum */ typedef enum { - ECMA_PROPERTY_ENUMERABLE, /**< property's 'Enumerable' attribute is true */ - ECMA_PROPERTY_NOT_ENUMERABLE /**< property's 'Enumerable' attribute is false */ + ECMA_PROPERTY_NOT_ENUMERABLE, /**< property's 'Enumerable' attribute is false */ + ECMA_PROPERTY_ENUMERABLE /**< property's 'Enumerable' attribute is true */ } ecma_PropertyEnumerableValue_t; /** @@ -178,8 +178,8 @@ typedef enum */ typedef enum { - ECMA_PROPERTY_CONFIGURABLE, /**< property's 'Configurable' attribute is true */ - ECMA_PROPERTY_NOT_CONFIGURABLE /**< property's 'Configurable' attribute is false */ + ECMA_PROPERTY_NOT_CONFIGURABLE, /**< property's 'Configurable' attribute is false */ + ECMA_PROPERTY_CONFIGURABLE /**< property's 'Configurable' attribute is true */ } ecma_PropertyConfigurableValue_t; /**