Index: src/messages.js |
diff --git a/src/messages.js b/src/messages.js |
index eadc880715a01d60bd93e394632a3cd2cdcacbd5..dd51e0b4c92fc0edbe9c4b2f4c7faca4f95b6df3 100644 |
--- a/src/messages.js |
+++ b/src/messages.js |
@@ -1009,7 +1009,7 @@ function GetStackFrames(raw_stack) { |
var fun = raw_stack[i + 1]; |
var code = raw_stack[i + 2]; |
var pc = raw_stack[i + 3]; |
- var pos = %FunctionGetPositionForOffset(code, pc); |
+ var pos = %_IsSmi(code) ? code : %FunctionGetPositionForOffset(code, pc); |
sloppy_frames--; |
frames.push(new CallSite(recv, fun, pos, (sloppy_frames < 0))); |
} |