Index: src/macros.py |
diff --git a/src/macros.py b/src/macros.py |
index 48a425045c8b3d539bea8bc6eebadd38ab6b713c..bc3692bf230591426fd18ca7c674faf077d67b6b 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 SHOULD_CREATE_WRAPPER(functionName, receiver) = (!IS_NULL_OR_UNDEFINED(receiver) && !IS_SPEC_OBJECT(receiver) && %IsSloppyModeFunction(functionName)); |
# Private names. |
# GET_PRIVATE should only be used if the property is known to exists on obj |