Index: src/macros.py |
diff --git a/src/macros.py b/src/macros.py |
index 48a425045c8b3d539bea8bc6eebadd38ab6b713c..65c11615209cb2953213ef8560b6940fcfdd2065 100644 |
--- a/src/macros.py |
+++ b/src/macros.py |
@@ -166,6 +166,7 @@ macro TO_STRING_INLINE(arg) = (IS_STRING(%IS_VAR(arg)) ? arg : NonStringToString |
macro TO_NUMBER_INLINE(arg) = (IS_NUMBER(%IS_VAR(arg)) ? arg : NonNumberToNumber(arg)); |
macro TO_OBJECT_INLINE(arg) = (IS_SPEC_OBJECT(%IS_VAR(arg)) ? arg : ToObject(arg)); |
macro JSON_NUMBER_TO_STRING(arg) = ((%_IsSmi(%IS_VAR(arg)) || arg - arg == 0) ? %_NumberToString(arg) : "null"); |
+macro HAS_OWN_PROPERTY(obj, index) = (%_CallFunction(obj, index, ObjectHasOwnProperty)); |
# Private names. |
# GET_PRIVATE should only be used if the property is known to exists on obj |