diff --git a/exercises/practice/all-your-base/all-your-base.spec.js b/exercises/practice/all-your-base/all-your-base.spec.js index 2944c54..35393ac 100644 --- a/exercises/practice/all-your-base/all-your-base.spec.js +++ b/exercises/practice/all-your-base/all-your-base.spec.js @@ -31,6 +31,10 @@ function convert(digits = [], inputBase, outputBase) { outputBase ); + if (rc !== 0) { + return [[], rc]; + } + const outputBuffer = currentInstance.get_mem_as_i32( outputOffset, outputLength