diff options
Diffstat (limited to 'WebCore/bindings/js/ScriptFunctionCall.cpp')
-rw-r--r-- | WebCore/bindings/js/ScriptFunctionCall.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/WebCore/bindings/js/ScriptFunctionCall.cpp b/WebCore/bindings/js/ScriptFunctionCall.cpp index 5001d3c..e9073b5 100644 --- a/WebCore/bindings/js/ScriptFunctionCall.cpp +++ b/WebCore/bindings/js/ScriptFunctionCall.cpp @@ -60,7 +60,7 @@ void ScriptFunctionCall::appendArgument(const ScriptObject& argument) void ScriptFunctionCall::appendArgument(const ScriptString& argument) { - m_arguments.append(jsString(m_exec, argument)); + m_arguments.append(jsString(m_exec, argument.ustring())); } void ScriptFunctionCall::appendArgument(const ScriptValue& argument) @@ -132,7 +132,7 @@ ScriptValue ScriptFunctionCall::call(bool& hadException, bool reportExceptions) JSLock lock(SilenceAssertionsOnly); - JSValue function = thisObject->get(m_exec, Identifier(m_exec, m_name)); + JSValue function = thisObject->get(m_exec, Identifier(m_exec, stringToUString(m_name))); if (m_exec->hadException()) { if (reportExceptions) reportException(m_exec, m_exec->exception()); @@ -170,7 +170,7 @@ ScriptObject ScriptFunctionCall::construct(bool& hadException, bool reportExcept JSLock lock(SilenceAssertionsOnly); - JSObject* constructor = asObject(thisObject->get(m_exec, Identifier(m_exec, m_name))); + JSObject* constructor = asObject(thisObject->get(m_exec, Identifier(m_exec, stringToUString(m_name)))); if (m_exec->hadException()) { if (reportExceptions) reportException(m_exec, m_exec->exception()); |