[JSC] Unify how we throw TypeError from C++
[WebKit-https.git] / Source / JavaScriptCore / runtime / Symbol.cpp
index cd051a7..6ac790a 100644 (file)
@@ -79,7 +79,7 @@ JSObject* Symbol::toObject(ExecState* exec, JSGlobalObject* globalObject) const
 
 double Symbol::toNumber(ExecState* exec) const
 {
-    throwTypeError(exec, "Cannot convert a symbol to a number");
+    throwTypeError(exec, ASCIILiteral("Cannot convert a symbol to a number"));
     return 0.0;
 }