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

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

Issue 1654223003: Revert "Removed support deprecated (//@|/*@) source(URL|MappingURL)=" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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 | « include/v8.h ('k') | src/parsing/scanner.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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 */ 425 */
426 function ScriptLineEnd(n) { 426 function ScriptLineEnd(n) {
427 return this.line_ends[n]; 427 return this.line_ends[n];
428 } 428 }
429 429
430 430
431 /** 431 /**
432 * If sourceURL comment is available returns sourceURL comment contents. 432 * If sourceURL comment is available returns sourceURL comment contents.
433 * Otherwise, script name is returned. See 433 * Otherwise, script name is returned. See
434 * http://fbug.googlecode.com/svn/branches/firebug1.1/docs/ReleaseNotes_1.1.txt 434 * http://fbug.googlecode.com/svn/branches/firebug1.1/docs/ReleaseNotes_1.1.txt
435 * and Source Map Revision 3 proposal for details on using //# sourceURL 435 * and Source Map Revision 3 proposal for details on using //# sourceURL and
436 * comment to identify scripts that don't have name. 436 * deprecated //@ sourceURL comment to identify scripts that don't have name.
437 * 437 *
438 * @return {?string} script name if present, value for //# sourceURL comment. 438 * @return {?string} script name if present, value for //# sourceURL comment or
439 * deprecated //@ sourceURL comment otherwise.
439 */ 440 */
440 function ScriptNameOrSourceURL() { 441 function ScriptNameOrSourceURL() {
441 if (this.source_url) return this.source_url; 442 if (this.source_url) return this.source_url;
442 return this.name; 443 return this.name;
443 } 444 }
444 445
445 446
446 utils.SetUpLockedPrototype(Script, [ 447 utils.SetUpLockedPrototype(Script, [
447 "source", 448 "source",
448 "name", 449 "name",
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
1004 utils.Export(function(to) { 1005 utils.Export(function(to) {
1005 to.ErrorToString = ErrorToString; 1006 to.ErrorToString = ErrorToString;
1006 to.MakeError = MakeError; 1007 to.MakeError = MakeError;
1007 to.MakeRangeError = MakeRangeError; 1008 to.MakeRangeError = MakeRangeError;
1008 to.MakeSyntaxError = MakeSyntaxError; 1009 to.MakeSyntaxError = MakeSyntaxError;
1009 to.MakeTypeError = MakeTypeError; 1010 to.MakeTypeError = MakeTypeError;
1010 to.MakeURIError = MakeURIError; 1011 to.MakeURIError = MakeURIError;
1011 }); 1012 });
1012 1013
1013 }); 1014 });
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/parsing/scanner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698