Index: src/macros.py |
diff --git a/src/macros.py b/src/macros.py |
index b3ff0fcf11fb1888c7c9059c4df45b21cec8dfda..c9f56c2c48d746512f71da33bc8fbd25d97e2a10 100644 |
--- a/src/macros.py |
+++ b/src/macros.py |
@@ -167,6 +167,7 @@ macro TO_NUMBER_INLINE(arg) = (IS_NUMBER(%IS_VAR(arg)) ? arg : NonNumberToNumber |
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)); |
+macro SHOULD_CREATE_WRAPPER(functionName, receiver) = (!IS_SPEC_OBJECT(receiver) && %IsSloppyModeFunction(functionName)); |
# Private names. |
# GET_PRIVATE should only be used if the property is known to exists on obj |