Browse Source

LibJS: Add a variant of ErrorType::NotA named NotAnObjectOfType

This is a clearer name. Subsequent commits will convert files to use the
new name, then the old name will be deleted.
Timothy Flynn 3 years ago
parent
commit
fd8ec1fffa
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Userland/Libraries/LibJS/Runtime/ErrorTypes.h

+ 1 - 0
Userland/Libraries/LibJS/Runtime/ErrorTypes.h

@@ -63,6 +63,7 @@
     M(NotAFunctionNoParam, "Not a function")                                                                                            \
     M(NotAFunctionNoParam, "Not a function")                                                                                            \
     M(NotAn, "Not an {} object")                                                                                                        \
     M(NotAn, "Not an {} object")                                                                                                        \
     M(NotAnObject, "{} is not an object")                                                                                               \
     M(NotAnObject, "{} is not an object")                                                                                               \
+    M(NotAnObjectOfType, "Not an object of type {}")                                                                                    \
     M(NotAnObjectOrNull, "{} is neither an object nor null")                                                                            \
     M(NotAnObjectOrNull, "{} is neither an object nor null")                                                                            \
     M(NotAnObjectOrString, "{} is neither an object nor a string")                                                                      \
     M(NotAnObjectOrString, "{} is neither an object nor a string")                                                                      \
     M(NotAString, "{} is not a string")                                                                                                 \
     M(NotAString, "{} is not a string")                                                                                                 \