Permalink
Browse files

core, refactor: ThrowAssertionError use reference to avoid copy (#383)

  • Loading branch information...
ngot authored and xicilion committed Nov 14, 2017
1 parent dbe3c74 commit 3f19c1fac3e3b590a5bc1b59cc099e3381bdef75
Showing with 1 addition and 1 deletion.
  1. +1 −1 fibjs/include/utils.h
View
@@ -1110,7 +1110,7 @@ inline v8::Local<v8::Value> ThrowEvalError(exlib::string msg)
* e->Set(isolate->NewString("operator"), isolate->NewString("operator msg"));
* ThrowAssertionError(e);
**/
inline v8::Local<v8::Value> ThrowAssertionError(v8::Local<v8::Object> msg)
inline v8::Local<v8::Value> ThrowAssertionError(v8::Local<v8::Object>& msg)
{
Isolate* isolate = Isolate::current();
v8::Local<v8::Value> args[] = { msg };

0 comments on commit 3f19c1f

Please sign in to comment.