Lines Matching full:macro
44 macro IS_ARRAY(arg) = (%_IsArray(arg));
45 macro IS_NULL(arg) = (arg === null);
46 macro IS_NULL_OR_UNDEFINED(arg) = (arg == null);
47 macro IS_NUMBER(arg) = (typeof(arg) === 'number');
48 macro IS_STRING(arg) = (typeof(arg) === 'string');
49 macro IS_SYMBOL(arg) = (typeof(arg) === 'symbol');
50 macro IS_UNDEFINED(arg) = (arg === (void 0));
52 # Macro for ES queries of the type: "Type(O) is Object."
53 macro IS_RECEIVER(arg) = (%_IsJSReceiver(arg));
55 # Macro for ES queries of the type: "IsCallable(O)"
56 macro IS_CALLABLE(arg) = (typeof(arg) === 'function');
58 # Macro for ES RequireObjectCoercible
61 macro REQUIRE_OBJECT_COERCIBLE(arg, functionName) = if (IS_NULL(%IS_VAR(arg)) || IS_UNDEFINED(arg))…
64 macro TO_BOOLEAN(arg) = (!!(arg));
65 macro TO_INTEGER(arg) = (%_ToInteger(arg));
66 macro TO_LENGTH(arg) = (%_ToLength(arg));
67 macro TO_STRING(arg) = (%_ToString(arg));
68 macro TO_NUMBER(arg) = (%_ToNumber(arg));
69 macro TO_OBJECT(arg) = (%_ToObject(arg));
70 macro HAS_OWN_PROPERTY(obj, key) = (%_Call(ObjectHasOwnProperty, obj, key));
72 macro DEFINE_METHODS_LEN(obj, class_def, len) = %DefineMethodsInternal(obj, class class_def, len);
73 macro DEFINE_METHOD_LEN(obj, method_def, len) = %DefineMethodsInternal(obj, class { method_def }, l…
74 macro DEFINE_METHODS(obj, class_def) = DEFINE_METHODS_LEN(obj, class_def, -1);
75 macro DEFINE_METHOD(obj, method_def) = DEFINE_METHOD_LEN(obj, method_def, -1);