We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67335df commit 1080519Copy full SHA for 1080519
src/node_buffer.cc
@@ -1504,13 +1504,11 @@ void StaticCopy(const FunctionCallbackInfo<Value>& args) {
1504
}
1505
1506
if (target_start >= target_byte_length) {
1507
- return THROW_ERR_OUT_OF_RANGE(
1508
- env, "targetStart is out of bounds");
+ return THROW_ERR_OUT_OF_RANGE(env, "targetStart is out of bounds");
1509
1510
1511
if (source_start > source_byte_length || source_end > source_byte_length) {
1512
1513
- env, "sourceStart or sourceEnd is out of bounds");
+ return THROW_ERR_OUT_OF_RANGE(env, "sourceStart or sourceEnd is out of bounds");
1514
1515
1516
if (source_start >= source_end) {
0 commit comments