-
Currently NodeType is only defined as a String
It can be great to have a constants / enum definition to avoid to hardcode their usage in our project, like this:
```
export enum NodeType {
Ob…
-
In order to share a common metatable, `length` is implemented as a standard property on the array itself. This prevents it from being affected by `index` and `newindex` metamethods, making the followi…
-
How should cache memory management work? Is there a way to get garbage collection by default? (Using WeakMaps for the caches would be ideal…except that WeakMaps do not support primitives as keys.)
…
-
A possibility raised by defining private state in terms of (unreified) weakmaps is that we can have static private state as well as private methods:
``` js
class Point {
#x;
#y;
#size() { retur…
-
## Description
Initially reported in https://github.com/sindresorhus/memoize/issues/97, it's bad practice to place arguments after functions because functions tend to be inlined and eclipse the par…
-
We intensively use directives and some of our queries return hundreds and thousands of objects. I've found that each call of `DirectiveLocator::associated($node)` create new instances of directives an…
-
**Bug report or Feature request?**
Feature request
It would be great to be able to configure that certain global functions will always be pure, such as WeakMap, Map, Set, etc.
When having a v…
-
`[[Raw]]` of an entry of `[[DedentMap]]` is supposed to be `Object` (that's held weakly). Unfortunately `DedentTemplateStringsArray()` operation can create an entry where `[[Raw]]` is set to an arbitr…
-
### Version
21.7.2
### Platform
Linux logos 6.8.4-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 05 Apr 2024 00:14:23 +0000 x86_64 GNU/Linux
### Subsystem
V8?
### What steps will reproduce the bug?
Instal…
-
We still need to implement the BlobCache. Because we can't use the WeakMap hack that we use in a GCed language, we have to use a proper cache.
[Quick Cache](https://github.com/arthurprs/quick-cache…