Javascript - Fix compilation error wrapping std::complex via std_complex.i

Closes #1187
This commit is contained in:
William S Fulton 2018-02-11 11:12:24 +00:00
commit 7fbdd21b49
2 changed files with 5 additions and 1 deletions

View file

@ -17,7 +17,7 @@ SWIG_From_dec(Type)(%ifcplusplus(const Type&, Type) c)
{
SWIGV8_HANDLESCOPE_ESC();
v8::Local<v8::Array> vals = SWIGV8_ARRAY_NEW(2);
v8::Local<v8::Array> vals = SWIGV8_ARRAY_NEW();
vals->Set(0, SWIG_From(double)(Real(c)));
vals->Set(1, SWIG_From(double)(Imag(c)));