summaryrefslogtreecommitdiffstats
path: root/Source/JavaScriptCore/API/JSContextRef.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptCore/API/JSContextRef.cpp')
-rw-r--r--Source/JavaScriptCore/API/JSContextRef.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/JavaScriptCore/API/JSContextRef.cpp b/Source/JavaScriptCore/API/JSContextRef.cpp
index 7c815355b..e2a102948 100644
--- a/Source/JavaScriptCore/API/JSContextRef.cpp
+++ b/Source/JavaScriptCore/API/JSContextRef.cpp
@@ -185,9 +185,7 @@ JSStringRef JSContextCreateBacktrace(JSContextRef ctx, unsigned maxStackSize)
intptr_t sourceID;
String urlString;
JSValue function;
-
- String levelStr = String::number(count);
-
+
exec->interpreter()->retrieveLastCaller(callFrame, signedLineNumber, sourceID, urlString, function);
if (function)
@@ -202,7 +200,7 @@ JSStringRef JSContextCreateBacktrace(JSContextRef ctx, unsigned maxStackSize)
if (!builder.isEmpty())
builder.append('\n');
builder.append('#');
- builder.append(levelStr);
+ builder.appendNumber(count);
builder.append(' ');
builder.append(functionName);
builder.appendLiteral("() at ");