X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/14957cd040308e3eeec43d26bae5d76da13fcd85..refs/heads/master:/runtime/StringRecursionChecker.cpp diff --git a/runtime/StringRecursionChecker.cpp b/runtime/StringRecursionChecker.cpp index 4e74735..6383107 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 "JSCInlines.h" namespace JSC { -EncodedJSValue StringRecursionChecker::throwStackOverflowError() +JSValue StringRecursionChecker::throwStackOverflowError() { - return throwVMError(m_exec, createStackOverflowError(m_exec)); + return JSC::throwStackOverflowError(m_exec); } -EncodedJSValue StringRecursionChecker::emptyString() +JSValue StringRecursionChecker::emptyString() { - return JSValue::encode(jsEmptyString(m_exec)); + return jsEmptyString(m_exec); } }