[Wren][D&D Character] Wrong stub

The stub seems wrong to me, it contains some JS documented code and a function definition:

whereas the tests expect a class Util:

Can I create a PR to fix this? :smile:

+cc @glennj

1 Like

I’ll sort it out. Thanks for reporting!

You’re absolutely right of course

// export const abilityModifier = () => {
//   throw new Error('Remove this statement and implement this function');
// };

var abilityModifier = Fn.new { |n|
  Fiber.abort("Remove this statement and implement this function")
}

should be

class Util {
  static abilityModifier(n) = {
    Fiber.abort("Remove this statement and implement this function")
  }
}

Would you like to submit a PR?

1 Like

PR opened. :wink:

1 Like