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

Unified Diff: src/mirror-delay.js

Issue 40317: Added unique id to all scripts (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 9 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 | « src/factory.cc ('k') | src/objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mirror-delay.js
===================================================================
--- src/mirror-delay.js (revision 1464)
+++ src/mirror-delay.js (working copy)
@@ -1359,7 +1359,8 @@
FrameMirror.prototype.sourceLocation = function() {
if (this.func().resolved() && this.func().script()) {
- return this.func().script().locationFromPosition(this.sourcePosition());
+ return this.func().script().locationFromPosition(this.sourcePosition(),
+ true);
}
};
@@ -1561,6 +1562,11 @@
};
+ScriptMirror.prototype.id = function() {
+ return this.script_.id;
+};
+
+
ScriptMirror.prototype.source = function() {
return this.script_.source;
};
« no previous file with comments | « src/factory.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698