Skip to main content

Questions tagged [ecmascript-5]

ECMAScript is the name of the Ecma International Standard 262. It is based on the scripting language JavaScript which was delivered by Netscape to Ecma for standardization. The 5th Edition is an update of the 3rd edition specification after the cancellation of the 4th edition. It adds new features including strict mode, getters and setters, a JSON object, and new methods for Object, Array, Date, and Function prototypes.

1 vote
0 answers
110 views

React Hooks Behavior: Difference When Using variables and states in useCallback before their Definition (ES5)

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

How can Babel transpile a Node.js module polyfill (e.g. buffer) to ES5?

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
19 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 ...
Jacquelyn Bloomfield's user avatar
0 votes
1 answer
72 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'...
Shaun Roselt's user avatar
  • 3,055
1 vote
0 answers
39 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 ...
kat's user avatar
  • 5,895
0 votes
0 answers
20 views

When I run the server in javascript and combine html and tsx formatted files and present them to the server, I get an error in css

As I said in the title, I use babel, for this, when I give a jsx formatted side server file 🗄, it connects with js, but this time, when I present it fully, a css file integration error occurs. By the ...
Mr.Software's user avatar
0 votes
0 answers
34 views

webpack compile incorrect ES version

I have a problem with React webb application on IOS 16.3 and lower version. I discovered that my compile crete static class methods that not supported in ES5, that course syntax problems (SyntaxError: ...
MASLACH's user avatar
0 votes
2 answers
125 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 ...
My1's user avatar
  • 475
0 votes
2 answers
65 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 (...
LA_'s user avatar
  • 20.3k
0 votes
0 answers
41 views

ES6 Class compilation to ES5 function constructor

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
1 vote
1 answer
98 views

Code.org -- Searching in a database for the proper day and then adding it into a list

I am working on a project for school and am almost finished with it. I need code.org to search through my database for Habits that occur on the day set. (Days of the week) then be put into a list and ...
Devom Brahmbhatt's user avatar
0 votes
1 answer
210 views

Use webpack and babel to convert ES6 to ES5 file javascript but it doesn't work

I use webpack and babel to convert ES6 to ES5 file javascript but it doesn't work. File code javascript contains many functions. This is file webpack.config.cjs: module: { rules: [ ...
James's user avatar
  • 31
0 votes
1 answer
69 views

Using Highcharts with IE 11 from ES5 folder but it crashes

I try to run Highcharts with IE11 but it crashes I load Highcharts from ES5 folder as told in the documentation. IE11 devtool console indicates that the Highcharts es5 code not seem to be valid ES5. ...
uran's user avatar
  • 33
1 vote
0 answers
582 views

Vite Shopify CDN minification failed

I have tried this with two separate Vite setups for Shopify and I'm receiving the same problem. It's not liking the conversion to ES5, or it's not doing it at all and Shopify doesn't agree with it. ...
Sambuxc's user avatar
  • 470

15 30 50 per page
1
2 3 4 5
124