Skip to content

Commit 5446fa7

Browse files
targositaloacasas
authored andcommitted
deps: work around SmartOS 14 incompatibility
Refs: nodejs/v8#1 PR-URL: #11029 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Myles Borins <[email protected]>
1 parent 028bb63 commit 5446fa7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

deps/v8/src/parsing/parser.cc

+7-1
Original file line numberDiff line numberDiff line change
@@ -3349,11 +3349,17 @@ Expression* Parser::InstallHomeObject(Expression* function_literal,
33493349
return do_expr;
33503350
}
33513351

3352+
inline const std::string IntToString(int n) {
3353+
std::ostringstream oss;
3354+
oss << n;
3355+
return oss.str();
3356+
}
3357+
33523358
const AstRawString* ClassFieldVariableName(bool is_name,
33533359
AstValueFactory* ast_value_factory,
33543360
int index) {
33553361
std::string name =
3356-
".class-field-" + std::to_string(index) + (is_name ? "-name" : "-func");
3362+
".class-field-" + IntToString(index) + (is_name ? "-name" : "-func");
33573363
return ast_value_factory->GetOneByteString(name.c_str());
33583364
}
33593365

0 commit comments

Comments
 (0)