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

Side by Side Diff: src/js/messages.js

Issue 2147193002: Don't call into JS from within stack trace generation (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Just access the script itself, it's what the accessors do Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « src/isolate.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // ------------------------------------------------------------------- 5 // -------------------------------------------------------------------
6 6
7 (function(global, utils) { 7 (function(global, utils) {
8 8
9 %CheckIsBootstrapping(); 9 %CheckIsBootstrapping();
10 10
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 * If sourceURL comment is available returns sourceURL comment contents. 239 * If sourceURL comment is available returns sourceURL comment contents.
240 * Otherwise, script name is returned. See 240 * Otherwise, script name is returned. See
241 * http://fbug.googlecode.com/svn/branches/firebug1.1/docs/ReleaseNotes_1.1.txt 241 * http://fbug.googlecode.com/svn/branches/firebug1.1/docs/ReleaseNotes_1.1.txt
242 * and Source Map Revision 3 proposal for details on using //# sourceURL and 242 * and Source Map Revision 3 proposal for details on using //# sourceURL and
243 * deprecated //@ sourceURL comment to identify scripts that don't have name. 243 * deprecated //@ sourceURL comment to identify scripts that don't have name.
244 * 244 *
245 * @return {?string} script name if present, value for //# sourceURL comment or 245 * @return {?string} script name if present, value for //# sourceURL comment or
246 * deprecated //@ sourceURL comment otherwise. 246 * deprecated //@ sourceURL comment otherwise.
247 */ 247 */
248 function ScriptNameOrSourceURL() { 248 function ScriptNameOrSourceURL() {
249 // Keep in sync with Script::GetNameOrSourceURL.
249 if (this.source_url) return this.source_url; 250 if (this.source_url) return this.source_url;
250 return this.name; 251 return this.name;
251 } 252 }
252 253
253 254
254 utils.SetUpLockedPrototype(Script, [ 255 utils.SetUpLockedPrototype(Script, [
255 "source", 256 "source",
256 "name", 257 "name",
257 "source_url", 258 "source_url",
258 "source_mapping_url", 259 "source_mapping_url",
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 utils.Export(function(to) { 757 utils.Export(function(to) {
757 to.ErrorToString = ErrorToString; 758 to.ErrorToString = ErrorToString;
758 to.MakeError = MakeError; 759 to.MakeError = MakeError;
759 to.MakeRangeError = MakeRangeError; 760 to.MakeRangeError = MakeRangeError;
760 to.MakeSyntaxError = MakeSyntaxError; 761 to.MakeSyntaxError = MakeSyntaxError;
761 to.MakeTypeError = MakeTypeError; 762 to.MakeTypeError = MakeTypeError;
762 to.MakeURIError = MakeURIError; 763 to.MakeURIError = MakeURIError;
763 }); 764 });
764 765
765 }); 766 });
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698