Index: src/macros.py |
diff --git a/src/macros.py b/src/macros.py |
index bf7119feaa9ab2cc71b888265ca039efda5c94f4..34b07ab235172509d51afb4dd676b29eea63bd69 100644 |
--- a/src/macros.py |
+++ b/src/macros.py |
@@ -101,6 +101,9 @@ macro IS_OBJECT(arg) = (%_IsObject(arg)); |
macro IS_ARRAY(arg) = (%_IsArray(arg)); |
macro IS_FUNCTION(arg) = (%_IsFunction(arg)); |
macro IS_REGEXP(arg) = (%_IsRegExp(arg)); |
+macro IS_SET(arg) = (%_ClassOf(arg) === 'Set'); |
+macro IS_MAP(arg) = (%_ClassOf(arg) === 'Map'); |
+macro IS_WEAKMAP(arg) = (%_ClassOf(arg) === 'WeakMap'); |
macro IS_DATE(arg) = (%_ClassOf(arg) === 'Date'); |
macro IS_NUMBER_WRAPPER(arg) = (%_ClassOf(arg) === 'Number'); |
macro IS_STRING_WRAPPER(arg) = (%_ClassOf(arg) === 'String'); |