Skip to content

Commit 9c3a488

Browse files
committed
BugFix - Escapable scope was not defined in GetValue
1 parent 47646ec commit 9c3a488

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/njs/src/njsConnection.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ v8::Handle<v8::Value> Connection::GetRows (eBaton* executeBaton)
10381038
v8::Handle<v8::Value> Connection::GetValue ( short ind, unsigned short type, void* val,
10391039
DPI_BUFLEN_TYPE len )
10401040
{
1041-
NanScope();
1041+
NanEscapableScope();
10421042
Handle<Value> value;
10431043
Local<Date> date;
10441044
if(ind != -1)
@@ -1067,7 +1067,7 @@ v8::Handle<v8::Value> Connection::GetValue ( short ind, unsigned short type, voi
10671067
{
10681068
value = NanNull();
10691069
}
1070-
return value;
1070+
return NanEscapeScope(value);
10711071
}
10721072

10731073
/*****************************************************************************/

0 commit comments

Comments
 (0)