remove unnecessary catch block
This commit is contained in:
parent
48e6365295
commit
988f723f49
|
@ -278,10 +278,6 @@ inline JSValueRef ObjectWrap<ClassType>::get_property(JSContextRef ctx, JSObject
|
|||
// Out-of-bounds index getters should just return undefined in JS.
|
||||
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 &) {
|
||||
// Property is not a number.
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
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) {
|
||||
Nan::ThrowError(node::Exception::value(isolate, e));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue