Index: src/js/macros.py |
diff --git a/src/js/macros.py b/src/js/macros.py |
index 3508cc82701248be3b9cabab99380aadf91959bc..08f25b1f26d37f2123560498ed7646a8c3efb7db 100644 |
--- a/src/js/macros.py |
+++ b/src/js/macros.py |
@@ -47,29 +47,28 @@ define kMaxUint32 = 4294967295; |
macro IS_ARRAY(arg) = (%_IsArray(arg)); |
macro IS_ARRAYBUFFER(arg) = (%_ClassOf(arg) === 'ArrayBuffer'); |
macro IS_BOOLEAN(arg) = (typeof(arg) === 'boolean'); |
-macro IS_DATAVIEW(arg) = (%_ClassOf(arg) === 'DataView'); |
macro IS_DATE(arg) = (%IsDate(arg)); |
macro IS_ERROR(arg) = (%_ClassOf(arg) === 'Error'); |
macro IS_FUNCTION(arg) = (%IsFunction(arg)); |
macro IS_GENERATOR(arg) = (%_ClassOf(arg) === 'Generator'); |
macro IS_GLOBAL(arg) = (%_ClassOf(arg) === 'global'); |
-macro IS_MAP(arg) = (%_ClassOf(arg) === 'Map'); |
-macro IS_MAP_ITERATOR(arg) = (%_ClassOf(arg) === 'Map Iterator'); |
+macro IS_MAP(arg) = (%_IsJSMap(arg)); |
+macro IS_MAP_ITERATOR(arg) = (%_IsJSMapIterator(arg)); |
macro IS_NULL(arg) = (arg === null); |
macro IS_NULL_OR_UNDEFINED(arg) = (arg == null); |
macro IS_NUMBER(arg) = (typeof(arg) === 'number'); |
macro IS_OBJECT(arg) = (typeof(arg) === 'object'); |
macro IS_PROXY(arg) = (%_IsJSProxy(arg)); |
macro IS_SCRIPT(arg) = (%_ClassOf(arg) === 'Script'); |
-macro IS_SET(arg) = (%_ClassOf(arg) === 'Set'); |
-macro IS_SET_ITERATOR(arg) = (%_ClassOf(arg) === 'Set Iterator'); |
+macro IS_SET(arg) = (%_IsJSSet(arg)); |
+macro IS_SET_ITERATOR(arg) = (%_IsJSSetIterator(arg)); |
macro IS_SHAREDARRAYBUFFER(arg) = (%_ClassOf(arg) === 'SharedArrayBuffer'); |
macro IS_STRING(arg) = (typeof(arg) === 'string'); |
macro IS_SYMBOL(arg) = (typeof(arg) === 'symbol'); |
macro IS_TYPEDARRAY(arg) = (%_IsTypedArray(arg)); |
macro IS_UNDEFINED(arg) = (arg === (void 0)); |
-macro IS_WEAKMAP(arg) = (%_ClassOf(arg) === 'WeakMap'); |
-macro IS_WEAKSET(arg) = (%_ClassOf(arg) === 'WeakSet'); |
+macro IS_WEAKMAP(arg) = (%_IsJSWeakMap(arg)); |
+macro IS_WEAKSET(arg) = (%_IsJSWeakSet(arg)); |
# Macro for ES queries of the type: "Type(O) is Object." |
macro IS_RECEIVER(arg) = (%_IsJSReceiver(arg)); |