X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/14957cd040308e3eeec43d26bae5d76da13fcd85..93a3786624b2768d89bfa27e46598dc64e2fb70a:/runtime/StringRecursionChecker.cpp diff --git a/runtime/StringRecursionChecker.cpp b/runtime/StringRecursionChecker.cpp index 4e74735..8835a5c 100644 --- a/runtime/StringRecursionChecker.cpp +++ b/runtime/StringRecursionChecker.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011 Apple Inc. All rights reserved. + * Copyright (C) 2011, 2012 Apple Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -22,17 +22,18 @@ #include "Error.h" #include "ExceptionHelpers.h" +#include "Operations.h" namespace JSC { -EncodedJSValue StringRecursionChecker::throwStackOverflowError() +JSValue StringRecursionChecker::throwStackOverflowError() { - return throwVMError(m_exec, createStackOverflowError(m_exec)); + return throwError(m_exec, createStackOverflowError(m_exec)); } -EncodedJSValue StringRecursionChecker::emptyString() +JSValue StringRecursionChecker::emptyString() { - return JSValue::encode(jsEmptyString(m_exec)); + return jsEmptyString(m_exec); } }