Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
120 views

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 ...
jcubic's user avatar
  • 67.2k
0 votes
3 answers
143 views

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 ...
David Garcia's user avatar
  • 2,720
0 votes
1 answer
56 views

I'm attempting to put together a basic test framework for a number of JS scripts that I've been provided. These all run on nashorn (JDK 11) without issue in their original habitat. I'm attempting to ...
BogStandard's user avatar
  • 2,450
0 votes
0 answers
95 views

I'm coding a type-safe class system using ES5 and JSDoc. At the most basic level, the problem boils down to adding a property to the constructor's returned instance type, while preserving the type ...
Shmookoff's user avatar
0 votes
1 answer
134 views

I wont to do I want to transpile TypeScript code with Private Class Fields to ES5 like when using TypeScript's private identifier. (I give up one or the other, it will be resolved soon. But I don't ...
sflow's user avatar
  • 1
1 vote
1 answer
218 views

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 ...
ianrose2k's user avatar
1 vote
0 answers
145 views

I have a doubt regarding, how hooks like useCallback() work when the variables, arrow functions, and states used in it and its dependency, are declared before and after the useCallback(). Note: The ...
jd singh's user avatar
1 vote
1 answer
69 views

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 ...
Taofeek's user avatar
  • 53
1 vote
0 answers
137 views

I would like to transpile JS code which uses the Node 'buffer' to pure ES5 so it can run on Duktape (with Webpack and Babel). The code has been simplified in a test.js, which uses buffer and console: ...
Jean-Luc's user avatar
0 votes
0 answers
34 views

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 ...
Jacquelyn Bloomfield's user avatar
0 votes
1 answer
135 views

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'...
Shaun Roselt's user avatar
  • 4,577
1 vote
0 answers
159 views

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 ...
kat's user avatar
  • 5,970
0 votes
2 answers
277 views

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 ...
My1's user avatar
  • 505
0 votes
2 answers
82 views

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 (...
LA_'s user avatar
  • 20.5k
0 votes
0 answers
57 views

I noticed something while playing with Typescript's compiler options. (Typescript is irrelevant here, I'm just using it as a compiler much like babel) So, I have this code in .ts file (function () ...
cvass's user avatar
  • 33

15 30 50 per page
1
2 3 4 5
125