221 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
5
votes
1
answer
102
views
Why is "groupBy" a static method and not on the Array Prototype?
The MDN docs state:
Note: In some versions of some browsers, this method was implemented as the method Array.prototype.group(). Due to web compatibility issues, it is now implemented as a static ...
0
votes
1
answer
57
views
Angular 15 - typescript compilar option target and usedefineforclassfields are set to es2022 and false respectively by angular cli
We have a Tizen Angular 12 project its ECMA target "target": "es5" & "module": "es2020"
When we try to upgrade to Ang 15 upwards we get warning
typescript ...
2
votes
0
answers
73
views
Why is the "let" lookahead different between for-in and for-of loops in ECMAScript?
The ForInOfStatement production in the specification for ECMAScript is defined as follow for the cases I'm confused about:
for ( [lookahead ≠ let [] LeftHandSideExpression in Expression ) Statement
...
0
votes
0
answers
56
views
What does "syntax tax" mean in respect to the TC39 pipe-operator proposal?
Reading the ECMAScript TC39 pipe-operator proposal; it mentions "syntax tax" when comparing 2 possible alternatives for the pipe-operator implementation
(see https://github.com/tc39/proposal-...
0
votes
0
answers
65
views
Definition of assembly in literature versus Assembly class
According to Microsoft Learn,
Assemblies take the form of executable (.exe) or dynamic link library (.dll) files, and are the building blocks of .NET applications.
According to the ECMA-334 ...
1
vote
0
answers
4k
views
Can't import the named export 'XXX' from non EcmaScript module (only default export is available)
Working on a calendar display for a React project, and after creating this component, I have this error now appearing.
The error, "Failed to compile.
./node_modules/date-fns/intervalToDuration....
0
votes
1
answer
72
views
ECMAScript in Apache Wicket
Is Apache Wicket supported for ECMAScript 6, or is Ajax or jQuery always required to be integrated? Can this be found in a document? I am writing my master thesis and I try to compare TypeScript with ...
0
votes
2
answers
111
views
What mandates that nested types' members can have greater accessibility than the nested types
According to the 6th Edition of ECMA-335
I.8.5.3.2 Accessibility of members and nested types :
In general, a member of a type can have any one of the accessibility
rules assigned to it. There are ...
0
votes
2
answers
128
views
Can we assign Array to the key of Record and Object in index of Tuples in Javascript?
ES15 has introduced Records and Tuples, So can we use array as a attribute value inside the Record? Can we use object as a value of Tuple index?
1. Is it a valid for Record ?
const user = #{
name: &...
0
votes
0
answers
18
views
ECMA Regex match everything till first occurrence of exact string [duplicate]
I need a regex to to match the first occurrence of the @endforeach and not let last.
This is the Regex that I'm currently trying: /(@(foreach|if)).*(@end2円)/ The problem is it dose not stop matching ...
0
votes
1
answer
309
views
Recursive Regex for Parsing SGF with JS
1. What SGF is
SGF is what's widely used to save Go (board game) games as text. In essence, it's basically the text encoding of something like a tree.
Here's an example of what it looks like — I ...
-1
votes
1
answer
123
views
JS Regex for Parsing SGF (Meta)data
SGF is what's widely used to save Go (board game) games as text. One example of how it saves its data is this — as a whole, SGF is a text-based representation of a trie, which means it is recursive, ...
1
vote
1
answer
111
views
What does mean for loop with one semicolon?
Can please someone give an example of third for loop from specification and explain what does it mean?
14.7.4 The for Statement
Syntax
ForStatement[Yield, Await, Return] :
for ( [lookahead ≠ let []...
3
votes
1
answer
1k
views
Text on multiple lines without spaces as string literals
I want to be able to create a variable to hold several lines of text which is then created in Photoshop. My code that creates the text works fine. But I've a problem with my code formatting:
var ...
0
votes
0
answers
29
views
Cannot write to chrome.storage in extension [duplicate]
update
The question is not answered yet. I have updated the question to provide more context.
Updated Update
I switched the storage to chrome.storage.local, and the data appears to be stored there now,...