remove unnecessary catch block

This commit is contained in:
Ari Lazier 2016-04-21 13:38:10 -07:00
parent 48e6365295
commit 988f723f49
2 changed files with 0 additions and 8 deletions

View File

@ -278,10 +278,6 @@ inline JSValueRef ObjectWrap<ClassType>::get_property(JSContextRef ctx, JSObject
// Out-of-bounds index getters should just return undefined in JS. // Out-of-bounds index getters should just return undefined in JS.
return Value::from_undefined(ctx); return Value::from_undefined(ctx);
} }
catch (Results::OutOfBoundsIndexException &) {
// Out-of-bounds index getters should just return undefined in JS.
return Value::from_undefined(ctx);
}
catch (std::invalid_argument &) { catch (std::invalid_argument &) {
// Property is not a number. // Property is not a number.
} }

View File

@ -344,10 +344,6 @@ void wrap(uint32_t index, Nan::NAN_INDEX_GETTER_ARGS_TYPE info) {
// Out-of-bounds index getters should just return undefined in JS. // Out-of-bounds index getters should just return undefined in JS.
return_value.set_undefined(); return_value.set_undefined();
} }
catch (Results::OutOfBoundsIndexException &) {
// Out-of-bounds index getters should just return undefined in JS.
return_value.set_undefined();
}
catch (std::exception &e) { catch (std::exception &e) {
Nan::ThrowError(node::Exception::value(isolate, e)); Nan::ThrowError(node::Exception::value(isolate, e));
} }