Score of 2
1 answer
138 views
Web Components in Scheme interpreter in JavaScript?
I have a Scheme interpreter written in JavaScript called LIPS, and I have a define-class macro which is using the ES5 prototype system. But I have a problem in creating super(). I'm trying to create a ...
- reputation score 67384
Score of 0
3 answers
153 views
How to replace multiple regex matches in a JSON object
Given a JSON object which contains tags identified by {{, I need to find all matches in the payload and replace them. The following code works, but only returns the 1st match, and if I turn on the gim ...
- reputation score 2720
Score of 1
1 answer
224 views
How do I transpile Angular 17 ES6 app to ES5 for Android 10 devices
Working on a web app for a specialized device that runs Android 10 (Webview uses Chromium <80). When I try to serve the app and test on the Android device, I get errors for using optional chaining ...
- reputation score 21
Score of 1
1 answer
74 views
Simulating an auxiliary constructor in ECMAScript 5
I was going through "JavaScript the definitive guide" and I encountered this auxiliary constructor (below their Set definition): // Definition of Set, taken from chapter 9.6.1 function ...
- reputation score 53
Score of 0
0 answers
35 views
Consecutive day counter in ES5
I am trying to write logic in ES5 (in BIRT) to assess if an employee has worked 10 days in a row. I have extracted the start dates but can't seem to get the logic to work as intended. If an employee ...
- reputation score 1
Score of 0
1 answer
146 views
What does the "ECMA Script" project setting in TMS WEB Core do?
In the project settings, you're able to set "ECMA Script" between nothing, "ECMA Script 5" and "ECMA Script 6". But I'm really confused as to what this actually does. I'...
- reputation score 4742
Score of 1
0 answers
179 views
How do I support old browsers in my create-react-app project?
I have an app that I built using create react app. I just found out that it needs to support a very old browser (chrome 37). I was under the impression that by default create react app uses babel to ...
- reputation score 5970
Score of 0
2 answers
285 views
Get object's class name in ES5/ES5.1
In ES6 there is .constructor.name which can be used on any object to get its class name. Is there something in ES5 that can do that? (Note: Before commenters mention to upgrade the browser, etc., this ...
- reputation score 507
Score of 0
2 answers
87 views
How to optimize search of unasked questions?
Currently I have the following code - var questions = ['1', '2', '3', '4', ..., 'n']; var qAsked = []; // array of indexes of already asked questions // the code below is executed multiple times if (...
- reputation score 20529