Skip to content

Commit a521980

Browse files
committed
explicit array size
1 parent 0110348 commit a521980

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rocky-8/4bd36a1ac2f.diff

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ index f608d678505e..882be746310d 100644
88
void reportCallWithArgument(ConsoleAPIType type, const String16& message) {
99
- auto arguments =
1010
- v8::to_array<v8::Local<v8::Value>>({toV8String(m_isolate, message)});
11-
+ auto arguments =
12-
+ v8::to_array<v8::Local<v8::Value>>{{toV8String(m_isolate, message)}};
11+
+ std::array<v8::Local<v8::Value>, 1> arguments =
12+
+ {toV8String(m_isolate, message)};
1313
reportCall(type, arguments);
1414
}
1515

@@ -19,8 +19,8 @@ index f608d678505e..882be746310d 100644
1919
}
2020
- auto arguments =
2121
- v8::to_array<v8::Local<v8::Value>>({toV8String(m_isolate, message)});
22-
+ auto arguments =
23-
+ v8::to_array<v8::Local<v8::Value>>{{toV8String(m_isolate, message)}};
22+
+ std::array<v8::Local<v8::Value>, 1> arguments =
23+
+ {toV8String(m_isolate, message)};
2424
reportCall(ConsoleAPIType::kWarning, arguments);
2525
}
2626

0 commit comments

Comments
 (0)