sinonjs / sinon

Test spies, stubs and mocks for JavaScript.
https://sinonjs.org/
Other
9.6k stars 769 forks source link

SyntaxError: Unexpected token . -> assert(opts?.sinonXhrLib, "No XHR lib passed in"); #2583

Closed chuphalashit19 closed 5 months ago

chuphalashit19 commented 5 months ago

Describe the bug SyntaxError: Unexpected token . assert(opts?.sinonXhrLib, "No XHR lib passed in");

To Reproduce Steps to reproduce the behavior:

  1. Go to file sinon/lib/create-sinon-api.js:19

Screenshots image

By when can we expect this problem to be resolved as it is failing our builds

fatso83 commented 5 months ago

Please fill in the entire bug template. It's there for a reason.You are missing a lot of very essential information, such as what runtime this happens in (Node, browser, Deno, ... WHAT?). I'll close this and you can reopen it when done.