34 define DONT_DELETE = 4;
37 macro IS_ARRAY(arg) = (%_IsArray(arg));
38 macro IS_NULL(arg) = (arg === null);
39 macro IS_NULL_OR_UNDEFINED(arg) = (arg == null);
40 macro IS_NUMBER(arg) = (typeof(arg) ===
'number');
41 macro IS_SYMBOL(arg) = (typeof(arg) ===
'symbol');
42 macro IS_UNDEFINED(arg) = (arg === (void 0));
43 macro IS_CALLABLE(arg) = (typeof(arg) ===
'function');
46 macro TO_LENGTH(arg) = (%_ToLength(arg));
47 macro TO_STRING(arg) = (%_ToString(arg));
49 macro DEFINE_METHOD_LEN(obj, method_def, len) = %DefineMethodsInternal(obj,
class { method_def }, len);
50 macro DEFINE_METHOD(obj, method_def) = DEFINE_METHOD_LEN(obj, method_def, -1);
53 define UNDEFINED = (void 0);