We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 028bb63 commit 5446fa7Copy full SHA for 5446fa7
deps/v8/src/parsing/parser.cc
@@ -3349,11 +3349,17 @@ Expression* Parser::InstallHomeObject(Expression* function_literal,
3349
return do_expr;
3350
}
3351
3352
+inline const std::string IntToString(int n) {
3353
+ std::ostringstream oss;
3354
+ oss << n;
3355
+ return oss.str();
3356
+}
3357
+
3358
const AstRawString* ClassFieldVariableName(bool is_name,
3359
AstValueFactory* ast_value_factory,
3360
int index) {
3361
std::string name =
- ".class-field-" + std::to_string(index) + (is_name ? "-name" : "-func");
3362
+ ".class-field-" + IntToString(index) + (is_name ? "-name" : "-func");
3363
return ast_value_factory->GetOneByteString(name.c_str());
3364
3365
0 commit comments