File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- var Overload = require ( "overload" ) ;
1
+ var Overload = require ( "./ overload" ) ;
2
2
var Watchable = Overload . Watchable ;
3
3
var RePrototype = Overload . RePrototype ;
4
4
module . exports = {
Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ Handle<Array> WatchableIndexedPropertyEnumerator(
231
231
return scope.Close (Array::New ());
232
232
}
233
233
}
234
- Handle <Boolean > WatchableIndexedPropertyQuery (
234
+ Handle <Integer > WatchableIndexedPropertyQuery (
235
235
uint32_t index
236
236
, const AccessorInfo& info
237
237
) {
@@ -242,7 +242,7 @@ Handle<Boolean> WatchableIndexedPropertyQuery(
242
242
// Default
243
243
Handle <Value> data = callbacks->GetInternalField (2 );
244
244
if (data->IsNull ()) {
245
- return scope.Close (False ());
245
+ return scope.Close (Handle <Integer> ());
246
246
}
247
247
// Set up arguments
248
248
Handle <Object> args=WatchableArgs (info.Holder (),info.This ());
@@ -253,7 +253,7 @@ Handle<Boolean> WatchableIndexedPropertyQuery(
253
253
Handle <Function> callback = Handle <Function>::Cast (data);
254
254
Handle <Value> new_value = callback->Call (info.This (),1 ,values);
255
255
// Return value is the return of the function call
256
- return scope.Close (Boolean::New ( new_value->IsTrue ()));
256
+ return scope.Close (new_value->IsTrue () ? Handle <Integer>() : Integer::New ( 0 ));
257
257
}
258
258
259
259
Handle <Boolean > WatchableIndexedPropertyDeleter (
@@ -440,4 +440,4 @@ Handle<Value> RePrototype(const Arguments& args) {
440
440
// else {
441
441
// return scope.Close(ThrowException(Exception::Error(String::New("Argument must be a function"))));
442
442
// }
443
- // }
443
+ // }
You can’t perform that action at this time.
0 commit comments