Index: src/runtime.js |
diff --git a/src/runtime.js b/src/runtime.js |
index 348fd747f5b9171c45b493bc824d92a4ba725911..90fb36b42231c810cf0e74b7684a65f71dbe4e96 100644 |
--- a/src/runtime.js |
+++ b/src/runtime.js |
@@ -587,7 +587,7 @@ function ToObject(x) { |
if (IS_NUMBER(x)) return new $Number(x); |
if (IS_BOOLEAN(x)) return new $Boolean(x); |
if (IS_NULL_OR_UNDEFINED(x) && !IS_UNDETECTABLE(x)) { |
- throw %MakeTypeError('null_to_object', []); |
+ throw %MakeTypeError('undefined_or_null_to_object', []); |
} |
return x; |
} |