Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×

"function not defined" crashing API sandbox

1780736357
nesuprachy
Sheet Author
API Scripter
Hi, recently I came across a strange issue with one of my scripts ( DrD2StatusMarkers ) that started crashing the API sandbox. I have not made any changes to the script in over a year. For example: ReferenceError: checkInstall is not defined at SCRIPT: untitled.js [Tab 3]:25:18 at SCRIPT: untitled.js [Tab 3]:79:2 at Script.runInContext (node:vm:149:12) at Script.runInNewContext (node:vm:154:17) at Object.runInNewContext (node:vm:310:38) at Request._callback (/home/node/d20-api-server/api.js:4346:29) at self.callback (/home/node/d20-api-server/node_modules/request/request.js:185:22) at Request.emit (node:events:509:20) at Request.<anonymous> (/home/node/d20-api-server/node_modules/request/request.js:1154:10) at Request.emit (node:events:509:20) This does not happen for my other script ( DrD2LinkedTenacity ), even though the functions are virtually the same. Any tips?
1780756256
Victor B.
Pro
Sheet Author
API Scripter
This is a new thing recently pushed by Roll20.  Edit the script and remove "Use Strict".  It's at the very top.  
1780781738
The Aaron
Roll20 Production Team
API Scripter
In DrD20StatusMarkers, change the ; on line 23 to a , and it will work fine. 
1781778571
nesuprachy
Sheet Author
API Scripter
Thank you both, problem is solved