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

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

Issue 1495633002: Removed support deprecated (//@|/*@) source(URL|MappingURL)= (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 */ 441 */
442 function ScriptLineEnd(n) { 442 function ScriptLineEnd(n) {
443 return this.line_ends[n]; 443 return this.line_ends[n];
444 } 444 }
445 445
446 446
447 /** 447 /**
448 * If sourceURL comment is available returns sourceURL comment contents. 448 * If sourceURL comment is available returns sourceURL comment contents.
449 * Otherwise, script name is returned. See 449 * Otherwise, script name is returned. See
450 * http://fbug.googlecode.com/svn/branches/firebug1.1/docs/ReleaseNotes_1.1.txt 450 * http://fbug.googlecode.com/svn/branches/firebug1.1/docs/ReleaseNotes_1.1.txt
451 * and Source Map Revision 3 proposal for details on using //# sourceURL and 451 * and Source Map Revision 3 proposal for details on using //# sourceURL
452 * deprecated //@ sourceURL comment to identify scripts that don't have name. 452 * comment to identify scripts that don't have name.
453 * 453 *
454 * @return {?string} script name if present, value for //# sourceURL or 454 * @return {?string} script name if present, value for //# sourceURL comment.
455 * deprecated //@ sourceURL comment otherwise.
456 */ 455 */
457 function ScriptNameOrSourceURL() { 456 function ScriptNameOrSourceURL() {
458 if (this.source_url) return this.source_url; 457 if (this.source_url) return this.source_url;
459 return this.name; 458 return this.name;
460 } 459 }
461 460
462 461
463 utils.SetUpLockedPrototype(Script, [ 462 utils.SetUpLockedPrototype(Script, [
464 "source", 463 "source",
465 "name", 464 "name",
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
1034 utils.Export(function(to) { 1033 utils.Export(function(to) {
1035 to.ErrorToString = ErrorToString; 1034 to.ErrorToString = ErrorToString;
1036 to.MakeError = MakeError; 1035 to.MakeError = MakeError;
1037 to.MakeRangeError = MakeRangeError; 1036 to.MakeRangeError = MakeRangeError;
1038 to.MakeSyntaxError = MakeSyntaxError; 1037 to.MakeSyntaxError = MakeSyntaxError;
1039 to.MakeTypeError = MakeTypeError; 1038 to.MakeTypeError = MakeTypeError;
1040 to.MakeURIError = MakeURIError; 1039 to.MakeURIError = MakeURIError;
1041 }); 1040 });
1042 1041
1043 }); 1042 });
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