From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/JavaScriptCore/runtime/StringRecursionChecker.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Source/JavaScriptCore/runtime/StringRecursionChecker.cpp') 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() -- cgit v1.2.1