Skip to content

Commit

Permalink
sandbox, feat: define appname.
Browse files Browse the repository at this point in the history
  • Loading branch information
xicilion committed Jul 28, 2018
1 parent 5cd28f6 commit 4a18563
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fibjs/src/sandbox/SandBox_repl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ result_t SandBox::repl(v8::Local<v8::Array> cmds, Stream_base* out)

extern stream_logger* s_stream;
extern std_logger* s_std;
exlib::string appname("fibjs");

result_t SandBox::Context::repl(v8::Local<v8::Array> cmds, Stream_base* out)
{
Expand All @@ -157,7 +158,7 @@ result_t SandBox::Context::repl(v8::Local<v8::Array> cmds, Stream_base* out)
bs = new BufferedStream(out);
}

exlib::string str_ver("Welcome to fibjs ");
exlib::string str_ver("Welcome to " + appname + " ");

str_ver += fibjs_version;
str_ver += '.';
Expand Down

0 comments on commit 4a18563

Please sign in to comment.