summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/runtime/StringRecursionChecker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptCore/runtime/StringRecursionChecker.cpp')
-rw-r--r--Source/JavaScriptCore/runtime/StringRecursionChecker.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/JavaScriptCore/runtime/StringRecursionChecker.cpp b/Source/JavaScriptCore/runtime/StringRecursionChecker.cpp
index 1f204231e..33e45a695 100644
--- a/Source/JavaScriptCore/runtime/StringRecursionChecker.cpp
+++ b/Source/JavaScriptCore/runtime/StringRecursionChecker.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2011, 2012 Apple Inc. All rights reserved.
+ * Copyright (C) 2011-2012, 2016 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,13 +22,15 @@
#include "Error.h"
#include "ExceptionHelpers.h"
-#include "Operations.h"
+#include "JSCInlines.h"
namespace JSC {
JSValue StringRecursionChecker::throwStackOverflowError()
{
- return m_exec->vm().throwException(m_exec, createStackOverflowError(m_exec));
+ VM& vm = m_exec->vm();
+ auto scope = DECLARE_THROW_SCOPE(vm);
+ return JSC::throwStackOverflowError(m_exec, scope);
}
JSValue StringRecursionChecker::emptyString()