nurpax / c64jasm

C64 6502 assembler in TypeScript
51 stars 14 forks source link

non-function values in module.exports should be accessible #54

Closed nurpax closed 5 years ago

nurpax commented 5 years ago

This should work fine, but c64jasm tries to call intval:

module.exports = {
  sintab: ({}, len, scale) => {
      const res = Array(len).fill(0).map((v,i) => Math.sin(i/len * Math.PI * 2.0) * scale);
      return res;
  },
  intval: 32
}