diff options
Diffstat (limited to 'Source/JavaScriptCore/runtime/JSValue.cpp')
-rw-r--r-- | Source/JavaScriptCore/runtime/JSValue.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/JavaScriptCore/runtime/JSValue.cpp b/Source/JavaScriptCore/runtime/JSValue.cpp index c34431178..caff9973b 100644 --- a/Source/JavaScriptCore/runtime/JSValue.cpp +++ b/Source/JavaScriptCore/runtime/JSValue.cpp @@ -143,7 +143,7 @@ void JSValue::putToPrimitive(ExecState* exec, PropertyName propertyName, JSValue JSObject* setterFunc = asGetterSetter(gs)->setter(); if (!setterFunc) { if (slot.isStrictMode()) - throwError(exec, createTypeError(exec, "setting a property that has only a getter")); + throwError(exec, createTypeError(exec, ASCIILiteral("setting a property that has only a getter"))); return; } @@ -283,9 +283,9 @@ JSString* JSValue::toStringSlowCase(ExecState* exec) const return value.toString(exec); } -UString JSValue::toUStringSlowCase(ExecState* exec) const +String JSValue::toWTFStringSlowCase(ExecState* exec) const { - return inlineJSValueNotStringtoUString(*this, exec); + return inlineJSValueNotStringtoString(*this, exec); } } // namespace JSC |