@@ -70,7 +70,7 @@ using v8::Value;
70
70
static void WriteNodeReport (Isolate* isolate,
71
71
Environment* env,
72
72
const char * message,
73
- const char * location ,
73
+ const char * trigger ,
74
74
const std::string& filename,
75
75
std::ostream& out,
76
76
Local<String> stackstr,
@@ -79,7 +79,7 @@ static void PrintVersionInformation(JSONWriter* writer);
79
79
static void PrintJavaScriptStack (JSONWriter* writer,
80
80
Isolate* isolate,
81
81
Local<String> stackstr,
82
- const char * location );
82
+ const char * trigger );
83
83
static void PrintNativeStack (JSONWriter* writer);
84
84
#ifndef _WIN32
85
85
static void PrintResourceUsage (JSONWriter* writer);
@@ -100,7 +100,7 @@ static std::atomic_int seq = {0}; // sequence number for report filenames
100
100
std::string TriggerNodeReport (Isolate* isolate,
101
101
Environment* env,
102
102
const char * message,
103
- const char * location ,
103
+ const char * trigger ,
104
104
std::string name,
105
105
Local<String> stackstr) {
106
106
std::ostringstream oss;
@@ -178,7 +178,7 @@ std::string TriggerNodeReport(Isolate* isolate,
178
178
<< " Writing Node.js report to file: " << filename << std::endl;
179
179
}
180
180
181
- WriteNodeReport (isolate, env, message, location , filename, *outstream,
181
+ WriteNodeReport (isolate, env, message, trigger , filename, *outstream,
182
182
stackstr, &tm_struct);
183
183
184
184
// Do not close stdout/stderr, only close files we opened.
@@ -194,22 +194,22 @@ std::string TriggerNodeReport(Isolate* isolate,
194
194
void GetNodeReport (Isolate* isolate,
195
195
Environment* env,
196
196
const char * message,
197
- const char * location ,
197
+ const char * trigger ,
198
198
Local<String> stackstr,
199
199
std::ostream& out) {
200
200
// Obtain the current time and the pid (platform dependent)
201
201
TIME_TYPE tm_struct;
202
202
LocalTime (&tm_struct);
203
203
WriteNodeReport (
204
- isolate, env, message, location , " " , out, stackstr, &tm_struct);
204
+ isolate, env, message, trigger , " " , out, stackstr, &tm_struct);
205
205
}
206
206
207
207
// Internal function to coordinate and write the various
208
208
// sections of the report to the supplied stream
209
209
static void WriteNodeReport (Isolate* isolate,
210
210
Environment* env,
211
211
const char * message,
212
- const char * location ,
212
+ const char * trigger ,
213
213
const std::string& filename,
214
214
std::ostream& out,
215
215
Local<String> stackstr,
@@ -228,7 +228,7 @@ static void WriteNodeReport(Isolate* isolate,
228
228
writer.json_objectstart (" header" );
229
229
230
230
writer.json_keyvalue (" event" , message);
231
- writer.json_keyvalue (" location " , location );
231
+ writer.json_keyvalue (" trigger " , trigger );
232
232
if (!filename.empty ())
233
233
writer.json_keyvalue (" filename" , filename);
234
234
else
@@ -280,7 +280,7 @@ static void WriteNodeReport(Isolate* isolate,
280
280
writer.json_objectend ();
281
281
282
282
// Report summary JavaScript stack backtrace
283
- PrintJavaScriptStack (&writer, isolate, stackstr, location );
283
+ PrintJavaScriptStack (&writer, isolate, stackstr, trigger );
284
284
285
285
// Report native stack backtrace
286
286
PrintNativeStack (&writer);
@@ -372,12 +372,12 @@ static void PrintVersionInformation(JSONWriter* writer) {
372
372
static void PrintJavaScriptStack (JSONWriter* writer,
373
373
Isolate* isolate,
374
374
Local<String> stackstr,
375
- const char * location ) {
375
+ const char * trigger ) {
376
376
writer->json_objectstart (" javascriptStack" );
377
377
378
378
std::string ss;
379
- if ((!strcmp (location , " OnFatalError " )) ||
380
- (!strcmp (location , " Signal" ))) {
379
+ if ((!strcmp (trigger , " FatalError " )) ||
380
+ (!strcmp (trigger , " Signal" ))) {
381
381
ss = " No stack.\n Unavailable.\n " ;
382
382
} else {
383
383
String::Utf8Value sv (isolate, stackstr);
0 commit comments