Index: src/macros.py |
diff --git a/src/macros.py b/src/macros.py |
index 7bad23bd425369f9452fe33c90d86f31bdc14a49..0ba542739e6949c73f8a3064c1e0b975f3ce03d4 100644 |
--- a/src/macros.py |
+++ b/src/macros.py |
@@ -159,6 +159,7 @@ macro JSON_NUMBER_TO_STRING(arg) = ((%_IsSmi(%IS_VAR(arg)) || arg - arg == 0) ? |
# Private names. |
macro NEW_PRIVATE(name) = (%CreatePrivateSymbol(name)); |
+macro IS_PRIVATE(sym) = (%SymbolIsPrivate(sym)); |
macro HAS_PRIVATE(obj, sym) = (sym in obj); |
macro GET_PRIVATE(obj, sym) = (obj[sym]); |
macro SET_PRIVATE(obj, sym, val) = (obj[sym] = val); |
@@ -260,3 +261,9 @@ const COMPILATION_TYPE_JSON = 2; |
# Matches Messages::kNoLineNumberInfo from v8.h |
const kNoLineNumberInfo = 0; |
+ |
+# Matches PropertyAttributes from property-details.h |
+const PROPERTY_ATTRIBUTES_NONE = 0; |
+const PROPERTY_ATTRIBUTES_STRING = 8; |
+const PROPERTY_ATTRIBUTES_SYMBOLIC = 16; |
+const PROPERTY_ATTRIBUTES_PRIVATE_SYMBOL = 32; |