Skip to content

Commit

Permalink
Handle implementations list not being an Array.
Browse files Browse the repository at this point in the history
  • Loading branch information
BigBlueHat committed May 2, 2024
1 parent 8d3fcf3 commit 0d9be09
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions implementations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,11 @@ export const localSettings = (Object.keys(localConfig).length > 0) ?
{enableInteropTests: true, testAllImplementations: true};

// get localConfig and look for an implementations property
const local = localConfig?.implementations || [];

let local = localConfig?.implementations || [];
// it's an easy typo to set `implementations` to an object...instead of an array
if(!Array.isArray(local)) {
local = [local];
}
// concat all the implementation manifests together
const all = remote.concat(local);

Expand Down

0 comments on commit 0d9be09

Please sign in to comment.