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

Side by Side Diff: include/v8.h

Issue 265593002: Add v8::Message::GetScriptOrigin() with tests (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Created 6 years, 6 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 | « no previous file | samples/lineprocessor.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 /** \mainpage V8 API Reference Guide 5 /** \mainpage V8 API Reference Guide
6 * 6 *
7 * V8 is Google's open source JavaScript engine. 7 * V8 is Google's open source JavaScript engine.
8 * 8 *
9 * This set of documents provides reference material generated from the 9 * This set of documents provides reference material generated from the
10 * V8 header file, include/v8.h. 10 * V8 header file, include/v8.h.
(...skipping 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after
1102 1102
1103 /** 1103 /**
1104 * An error message. 1104 * An error message.
1105 */ 1105 */
1106 class V8_EXPORT Message { 1106 class V8_EXPORT Message {
1107 public: 1107 public:
1108 Local<String> Get() const; 1108 Local<String> Get() const;
1109 Local<String> GetSourceLine() const; 1109 Local<String> GetSourceLine() const;
1110 1110
1111 /** 1111 /**
1112 * Returns the origin for the script from where the function causing the
1113 * error originates.
1114 */
1115 ScriptOrigin GetScriptOrigin() const;
1116
1117 /**
1112 * Returns the resource name for the script from where the function causing 1118 * Returns the resource name for the script from where the function causing
1113 * the error originates. 1119 * the error originates.
1114 */ 1120 */
1115 Handle<Value> GetScriptResourceName() const; 1121 Handle<Value> GetScriptResourceName() const;
1116 1122
1117 /** 1123 /**
1118 * Exception stack trace. By default stack traces are not captured for 1124 * Exception stack trace. By default stack traces are not captured for
1119 * uncaught exceptions. SetCaptureStackTraceForUncaughtExceptions allows 1125 * uncaught exceptions. SetCaptureStackTraceForUncaughtExceptions allows
1120 * to change this option. 1126 * to change this option.
1121 */ 1127 */
(...skipping 5531 matching lines...) Expand 10 before | Expand all | Expand 10 after
6653 */ 6659 */
6654 6660
6655 6661
6656 } // namespace v8 6662 } // namespace v8
6657 6663
6658 6664
6659 #undef TYPE_CHECK 6665 #undef TYPE_CHECK
6660 6666
6661 6667
6662 #endif // V8_H_ 6668 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | samples/lineprocessor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698