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

Unified Diff: src/mirror-delay.js

Issue 271053: Check that constructor is a FunctionMirror before calling .name() (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 2 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
Index: src/mirror-delay.js
===================================================================
--- src/mirror-delay.js (revision 3050)
+++ src/mirror-delay.js (working copy)
@@ -764,7 +764,7 @@
ObjectMirror.prototype.toText = function() {
var name;
var ctor = this.constructorFunction();
- if (ctor.isUndefined()) {
+ if (!ctor.isFunction()) {
name = this.className();
} else {
name = ctor.name();
« no previous file with comments | « no previous file | test/mjsunit/debug-evaluate-bool-constructor.js » ('j') | test/mjsunit/debug-evaluate-bool-constructor.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698