Index: src/js/macros.py |
diff --git a/src/js/macros.py b/src/js/macros.py |
index cf762f78e803cc55c6557d716cfb68f14153b5be..c1d0c596f435b46fa2cd7d922de5cd120b303227 100644 |
--- a/src/js/macros.py |
+++ b/src/js/macros.py |
@@ -84,7 +84,7 @@ macro IS_CALLABLE(arg) = (typeof(arg) === 'function'); |
# Macro for ES6 CheckObjectCoercible |
# Will throw a TypeError of the form "[functionName] called on null or undefined". |
-macro CHECK_OBJECT_COERCIBLE(arg, functionName) = if (IS_NULL(%IS_VAR(arg)) || IS_UNDEFINED(arg)) throw MakeTypeError(kCalledOnNullOrUndefined, functionName); |
+macro CHECK_OBJECT_COERCIBLE(arg, functionName) = if (IS_NULL(%IS_VAR(arg)) || IS_UNDEFINED(arg)) throw %make_type_error(kCalledOnNullOrUndefined, functionName); |
# Inline macros. Use %IS_VAR to make sure arg is evaluated only once. |
macro NUMBER_IS_NAN(arg) = (!%_IsSmi(%IS_VAR(arg)) && !(arg == arg)); |