Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(871)

Unified Diff: src/messages.js

Issue 15670003: Fix edge case in stack trace formatting. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-237617.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/messages.js
diff --git a/src/messages.js b/src/messages.js
index 296965d37dd743891f4d7798582bbbb0dc341951..2ad68cbb032a8de3ffde75ab9938e40c2d600c55 100644
--- a/src/messages.js
+++ b/src/messages.js
@@ -906,8 +906,8 @@ function CallSiteGetPosition() {
function CallSiteIsConstructor() {
var receiver = this[CallSiteReceiverKey];
- var constructor =
- IS_OBJECT(receiver) ? %GetDataProperty(receiver, "constructor") : null;
+ var constructor = (receiver != null && IS_OBJECT(receiver))
+ ? %GetDataProperty(receiver, "constructor") : null;
if (!constructor) return false;
return this[CallSiteFunctionKey] === constructor;
}
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-237617.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698