Skip to content
Permalink
Browse files

sandbox, feat: define appname.

  • Loading branch information...
xicilion committed Jul 28, 2018
1 parent 5cd28f6 commit 4a18563fb7eb05e7a92b6f6c94e5b0b76042872c
Showing with 2 additions and 1 deletion.
  1. +2 −1 fibjs/src/sandbox/SandBox_repl.cpp
@@ -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)
{
@@ -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 += '.';

0 comments on commit 4a18563

Please sign in to comment.
You can’t perform that action at this time.