# I have questions

**URL:** https://es.discourse.group/c/i-have-questions/14.md

[Latest](https://es.discourse.group/latest.md) · [Categories](https://es.discourse.group/categories.md) · [Tags](https://es.discourse.group/tags.md)

---

## [About the I have questions category](https://es.discourse.group/t/about-the-i-have-questions-category/61)

<div class="topic-metadata">

**Author:** [@aki](https://es.discourse.group/u/aki)\
**Replies:** 0

</div>

Specifying a language is a complex affair, filled with confusing language and sometimes bewildering processes. It’s okay not to understand, and we encourage you to ask questions!

---

## [Why there is no syntactic-direct operation for StatementList: StatementListItem in Block Evaluation, which is under 14.2.2 Runtime Semantics: Evaluation?](https://es.discourse.group/t/why-there-is-no-syntactic-direct-operation-for-statementlist-statementlistitem-in-block-evaluation-which-is-under-14-2-2-runtime-semantics-evaluation/2660)

<div class="topic-metadata">

**Author:** [@xm86](https://es.discourse.group/u/xm86)\
**Replies:** 6\
**Last updated:** [October 22, 2026, 5:17am UTC](https://es.discourse.group/t/why-there-is-no-syntactic-direct-operation-for-statementlist-statementlistitem-in-block-evaluation-which-is-under-14-2-2-runtime-semantics-evaluation/2660 "2026-10-22T05:17:26Z")

</div>

I am reading WhileStatement. I am matching the grammar against an example: while (true) { continue; dowork(); } continue is in a BlockStatement, and there is production that is StatementList\[Yield, Await, Return\] :St…

---

## [Should %WrapForValidIteratorPrototype% define a Symbol.toStringTag?](https://es.discourse.group/t/should-wrapforvaliditeratorprototype-define-a-symbol-tostringtag/2602)

<div class="topic-metadata">

**Author:** [@senocular](https://es.discourse.group/u/senocular)\
**Replies:** 6\
**Last updated:** [September 6, 2026, 5:19am UTC](https://es.discourse.group/t/should-wrapforvaliditeratorprototype-define-a-symbol-tostringtag/2602 "2026-09-06T05:19:44Z")

</div>

I noticed most prototypes used with Generators/Iterators define toStringTags: Iterator prototype: "Iterator" Generator prototype: "Generator" GeneratorFunction prototype: "GeneratorFunction" Iterator helper prototype: …

---

## [ES2026 feature summary missing in published spec?](https://es.discourse.group/t/es2026-feature-summary-missing-in-published-spec/2632)

<div class="topic-metadata">

**Author:** [@senocular](https://es.discourse.group/u/senocular)\
**Replies:** 1\
**Last updated:** [July 28, 2026, 12:12am UTC](https://es.discourse.group/t/es2026-feature-summary-missing-in-published-spec/2632 "2026-07-28T00:12:55Z")

</div>

I noticed the the 2026 spec published on ecma-international org doesn't appear to have the 2026 feature summary in the Introduction. I found this PR from April which looks like maybe it should have made it in...? The cur…

---

## [\`import source\`: why not an attribute?](https://es.discourse.group/t/import-source-why-not-an-attribute/2621)

<div class="topic-metadata">

**Author:** [@Josh-Cena](https://es.discourse.group/u/Josh-Cena)\
**Replies:** 6\
**Last updated:** [July 21, 2026, 9:17am UTC](https://es.discourse.group/t/import-source-why-not-an-attribute/2621 "2026-07-21T09:17:42Z")

</div>

I'm finding the new import source syntax barely justifiable because we already have the now-omnipotent with that can basically change everything about module-importing, so I'm wondering: what benefits does import source …

---

## [Differences between \`RunSuspendedContext\` and \`RunCallerContext\` resumption value passing](https://es.discourse.group/t/differences-between-runsuspendedcontext-and-runcallercontext-resumption-value-passing/2617)

<div class="topic-metadata">

**Author:** [@John-Clint](https://es.discourse.group/u/John-Clint)\
**Replies:** 1\
**Last updated:** [July 2, 2026, 6:48pm UTC](https://es.discourse.group/t/differences-between-runsuspendedcontext-and-runcallercontext-resumption-value-passing/2617 "2026-07-02T18:48:32Z")

</div>

Both RunSuspendedContext and RunCallerContext have the following text in their description: It resumes X context (sending it Y as the resumption value) X and Y are different, but the point is that both resume a conte…

---

## [Were ISO/IEC TR 10176 guidelines usable for ECMA-262?](https://es.discourse.group/t/were-iso-iec-tr-10176-guidelines-usable-for-ecma-262/2616)

<div class="topic-metadata">

**Author:** [@sword-2](https://es.discourse.group/u/sword-2)\
**Replies:** 2\
**Last updated:** [July 1, 2026, 4:01pm UTC](https://es.discourse.group/t/were-iso-iec-tr-10176-guidelines-usable-for-ecma-262/2616 "2026-07-01T16:01:01Z")

</div>

The title of ISO/IEC TR 10176 was: Information technology — Guidelines for the preparation of programming language standards (Fourth edition 2003-04-15) The ISO/IEC TR had guidelines for terminology in section 4.2.1 co…

---

## [Differences between promises and thenables](https://es.discourse.group/t/differences-between-promises-and-thenables/2613)

<div class="topic-metadata">

**Author:** [@John-Clint](https://es.discourse.group/u/John-Clint)\
**Replies:** 4\
**Last updated:** [June 29, 2026, 7:10pm UTC](https://es.discourse.group/t/differences-between-promises-and-thenables/2613 "2026-06-29T19:10:36Z")

</div>

Taken from ECMAScript® 2027 Language Specification : A Promise is an object that is used as a placeholder for the eventual results of a deferred (and possibly asynchronous) computation. I don't think that this defini…

---

## [Could we just drop the TDZ for let](https://es.discourse.group/t/could-we-just-drop-the-tdz-for-let/2554)

<div class="topic-metadata">

**Author:** [@conartist6](https://es.discourse.group/u/conartist6)\
**Replies:** 3\
**Last updated:** [May 6, 2026, 11:35am UTC](https://es.discourse.group/t/could-we-just-drop-the-tdz-for-let/2554 "2026-05-06T11:35:31Z")

</div>

Not so much an idea or a proposal as a random thought that just crossed my mind. Couldn't we go ahead and just drop the TDZ for let? One one hand you might say, "no this is impossible, that is set in stone now and we c…

---

## [\[Self promo\] Ask262 - MCP server for exploring Ecma262](https://es.discourse.group/t/self-promo-ask262-mcp-server-for-exploring-ecma262/2547)

<div class="topic-metadata">

**Author:** [@bendtherules](https://es.discourse.group/u/bendtherules)\
**Replies:** 1\
**Last updated:** [April 23, 2026, 5:22pm UTC](https://es.discourse.group/t/self-promo-ask262-mcp-server-for-exploring-ecma262/2547 "2026-04-23T17:22:13Z")

</div>

Hi folks, I wanted to get feedback about a personal project. Ask262 - MCP server to reliably explore Ecma262 with your favourite AI. Trying it out OpenCode / Claude code - npx add-mcp "https://ask262.bendtherules.in/mc…

---

## [Class method keyword vs identifier parsing](https://es.discourse.group/t/class-method-keyword-vs-identifier-parsing/2535)

<div class="topic-metadata">

**Author:** [@conartist6](https://es.discourse.group/u/conartist6)\
**Replies:** 6\
**Last updated:** [April 15, 2026, 8:02pm UTC](https://es.discourse.group/t/class-method-keyword-vs-identifier-parsing/2535 "2026-04-15T20:02:57Z")

</div>

Should this parse or not? TS says yes. Babel says no. Now I'm in a pickle... class Foo { static ge\\u{73} foo () {} } Both parsers agree that this is OK: class Foo { sta\\u{73}ic get foo () {} }

---

## [Questions about \`writeable\` with extended classes](https://es.discourse.group/t/questions-about-writeable-with-extended-classes/2532)

<div class="topic-metadata">

**Author:** [@conartist6](https://es.discourse.group/u/conartist6)\
**Replies:** 7\
**Last updated:** [April 6, 2026, 2:24pm UTC](https://es.discourse.group/t/questions-about-writeable-with-extended-classes/2532 "2026-04-06T14:24:33Z")

</div>

class Base { method() {} } Object.defineProperty(Base.prototype, 'method', { value: Base.prototype.method, writable: false, }); class SafeExtended extends Base { // this works fine method() {} } class Extend…

---

## [There is a contradiction in the description of \[\[getPrototypeOf\]\] and its algorithm.](https://es.discourse.group/t/there-is-a-contradiction-in-the-description-of-getprototypeof-and-its-algorithm/2524)

<div class="topic-metadata">

**Author:** [@dima-frunkers](https://es.discourse.group/u/dima-frunkers)\
**Replies:** 3\
**Last updated:** [March 24, 2026, 8:54am UTC](https://es.discourse.group/t/there-is-a-contradiction-in-the-description-of-getprototypeof-and-its-algorithm/2524 "2026-03-24T08:54:37Z")

</div>

Let me introduce the term description. This is the text from the “Description“ cell of the internal method \[\[setPrototypeOf\]\] in the specification table Table 4: Essential internal methods. Also, below I use the term ta…

---

## [Any links to discussions around Object.deepFreeze?](https://es.discourse.group/t/any-links-to-discussions-around-object-deepfreeze/652)

<div class="topic-metadata">

**Author:** [@aclaymore](https://es.discourse.group/u/aclaymore)\
**Replies:** 7\
**Last updated:** [March 16, 2026, 3:21am UTC](https://es.discourse.group/t/any-links-to-discussions-around-object-deepfreeze/652 "2026-03-16T03:21:07Z")

</div>

In the tc39 notes from 2021/01/25 there was discussion around the mutability of JSON modules. It was mentioned that projects could opt-in to immutability with: you can simply be the first importer and then you can free…

---

## [Arrays without prototypes: impossible to construct performantly?](https://es.discourse.group/t/arrays-without-prototypes-impossible-to-construct-performantly/2507)

<div class="topic-metadata">

**Author:** [@conartist6](https://es.discourse.group/u/conartist6)\
**Replies:** 3\
**Last updated:** [March 7, 2026, 11:40pm UTC](https://es.discourse.group/t/arrays-without-prototypes-impossible-to-construct-performantly/2507 "2026-03-07T23:40:04Z")

</div>

I'm working on deep-frozen data structures made up of objects and arrays, and it would be ideal in my mind for a deep-frozen structure not to have the mutable Object and Array prototypes hanging off of each otherwise-imm…

---

## [Synchronous Stream Support](https://es.discourse.group/t/synchronous-stream-support/2500)

<div class="topic-metadata">

**Author:** [@cyberphone](https://es.discourse.group/u/cyberphone)\
**Replies:** 2\
**Last updated:** [March 7, 2026, 4:17pm UTC](https://es.discourse.group/t/synchronous-stream-support/2500 "2026-03-07T16:17:30Z")

</div>

I’m working on a cross-platform specification and associated reference implementations, targeting CBOR. Although the JavaScript implementation ( GitHub - cyberphone/CBOR.js: CBOR JavaScript API and Reference Implementat…

---

## [Confused about this .then/.finally error handling example](https://es.discourse.group/t/confused-about-this-then-finally-error-handling-example/2489)

<div class="topic-metadata">

**Author:** [@bendtherules](https://es.discourse.group/u/bendtherules)\
**Replies:** 2\
**Last updated:** [February 6, 2026, 6:01pm UTC](https://es.discourse.group/t/confused-about-this-then-finally-error-handling-example/2489 "2026-02-06T18:01:40Z")

</div>

Here is a wierd behaviour that’s been bugging me for a whole day. All the usual docs and even AI explanations don’t make sense - so i have a feeling this might be something actually explained in the spec. This throws sy…

---

## [What happens if I write a parser that treats all non-ascii characters as being valid in identifiers?](https://es.discourse.group/t/what-happens-if-i-write-a-parser-that-treats-all-non-ascii-characters-as-being-valid-in-identifiers/2472)

<div class="topic-metadata">

**Author:** [@conartist6](https://es.discourse.group/u/conartist6)\
**Replies:** 5\
**Last updated:** [December 17, 2025, 11:08pm UTC](https://es.discourse.group/t/what-happens-if-i-write-a-parser-that-treats-all-non-ascii-characters-as-being-valid-in-identifiers/2472 "2025-12-17T23:08:30Z")

</div>

You could argue that that's not a spec-compliant parser and of course you'd be right, but my counterargument for why this isn't a bad idea is: I would bet you anything there would never be any breakage on account of it. …

---

## [Aligning token semantics across Web Locks, TC39 Mutex, and Concurrency Control proposals](https://es.discourse.group/t/aligning-token-semantics-across-web-locks-tc39-mutex-and-concurrency-control-proposals/2465)

<div class="topic-metadata">

**Author:** [@juner](https://es.discourse.group/u/juner)\
**Replies:** 1\
**Last updated:** [November 27, 2025, 1:44am UTC](https://es.discourse.group/t/aligning-token-semantics-across-web-locks-tc39-mutex-and-concurrency-control-proposals/2465 "2025-11-27T01:44:02Z")

</div>

Hi all, I’d like to ask for some design guidance and cross-proposal alignment regarding “token” semantics for locks and concurrency primitives in JavaScript and the Web Platform. This question sits at the intersection …

---

## [Reflect.set(...args, receiver) throwing for no reason](https://es.discourse.group/t/reflect-set-args-receiver-throwing-for-no-reason/2462)

<div class="topic-metadata">

**Author:** [@WebReflection](https://es.discourse.group/u/WebReflection)\
**Replies:** 7\
**Last updated:** [November 10, 2025, 10:43am UTC](https://es.discourse.group/t/reflect-set-args-receiver-throwing-for-no-reason/2462 "2025-11-10T10:43:00Z")

</div>

I got surprised by the fact I couldn’t do this: const handler = {}; for (const key of Reflect.ownKeys(Reflect)) handler\[key\] = (target, ...rest) =\> Reflect\[key\](target.deref(), ...rest); const proxy = value =\> { c…

---

## [Addition of power / energy units to Intl.NumberFormat](https://es.discourse.group/t/addition-of-power-energy-units-to-intl-numberformat/1702)

<div class="topic-metadata">

**Author:** [@imjasonmiller](https://es.discourse.group/u/imjasonmiller)\
**Replies:** 1\
**Last updated:** [October 24, 2025, 8:03am UTC](https://es.discourse.group/t/addition-of-power-energy-units-to-intl-numberformat/1702 "2025-10-24T08:03:40Z")

</div>

Hi all, The Intl.NumberFormat object been fantastic to use so far, but while writing something for electric vehicles I was wondering whether the addition of units for power / energy has been considered and/or what obsta…

---

## [ReturnIfAbrupt Macro](https://es.discourse.group/t/returnifabrupt-macro/2446)

<div class="topic-metadata">

**Author:** [@gaurav-rk9](https://es.discourse.group/u/gaurav-rk9)\
**Replies:** 4\
**Last updated:** [October 13, 2025, 6:32pm UTC](https://es.discourse.group/t/returnifabrupt-macro/2446 "2025-10-13T18:32:24Z")

</div>

The spec ( ECMAScript® 2026 Language Specification ) says: Algorithms steps that say or are otherwise equivalent to: ReturnIfAbrupt(AbstractOperation()). mean the same thing as: Let hygienicTemp be AbstractOperati…

---

## [WASM Opaque objects VS \`for...in\`](https://es.discourse.group/t/wasm-opaque-objects-vs-for-in/2443)

<div class="topic-metadata">

**Author:** [@WebReflection](https://es.discourse.group/u/WebReflection)\
**Replies:** 26\
**Last updated:** [October 9, 2025, 7:56pm UTC](https://es.discourse.group/t/wasm-opaque-objects-vs-for-in/2443 "2025-10-09T19:56:17Z")

</div>

It looks like the most primitive thing that works since ECMAScript 3rd Edition or even before is broken with WebAssembly opaque objects and I wonder who should I bug about it. for (const k in ref); TypeError: WebAssembl…

---

## [Include heap data structure](https://es.discourse.group/t/include-heap-data-structure/2128)

<div class="topic-metadata">

**Author:** [@holmsshiva](https://es.discourse.group/u/holmsshiva)\
**Replies:** 3\
**Last updated:** [October 9, 2025, 1:46pm UTC](https://es.discourse.group/t/include-heap-data-structure/2128 "2025-10-09T13:46:37Z")

</div>

JS team should include heap data structure as built in data structure. It will be very helpful for developers

---

## [Number.isNaN and redundant check for Number type?](https://es.discourse.group/t/number-isnan-and-redundant-check-for-number-type/2435)

<div class="topic-metadata">

**Author:** [@demimurych](https://es.discourse.group/u/demimurych)\
**Replies:** 8\
**Last updated:** [September 25, 2025, 10:24pm UTC](https://es.discourse.group/t/number-isnan-and-redundant-check-for-number-type/2435 "2025-09-25T22:24:07Z")

</div>

The algorithm for Number.isNaN checks the type in the first step: 1. If number is not a Number, return false. Why is this done if in the second line we already have: 2. If number is NaN, return true. If we read in th…

---

## [TypedArray.subarray byteOffset with detached buffers](https://es.discourse.group/t/typedarray-subarray-byteoffset-with-detached-buffers/2381)

<div class="topic-metadata">

**Author:** [@nickv](https://es.discourse.group/u/nickv)\
**Replies:** 8\
**Last updated:** [September 3, 2025, 4:14am UTC](https://es.discourse.group/t/typedarray-subarray-byteoffset-with-detached-buffers/2381 "2025-09-03T04:14:28Z")

</div>

Wondering if not setting byteOffset=0 in the TypedArray.subarray for detached buffers is a spec omission or a deliberate design decision. I had noticed a new test262 for it in built-ins/TypedArray/prototype/subarray/byt…

---

## [sugar for enum](https://es.discourse.group/t/sugar-for-enum/2399)

<div class="topic-metadata">

**Author:** [@ReinsBrain](https://es.discourse.group/u/ReinsBrain)\
**Replies:** 10\
**Last updated:** [July 17, 2025, 1:05pm UTC](https://es.discourse.group/t/sugar-for-enum/2399 "2025-07-17T13:05:08Z")

</div>

Hi All, Just wanted to humbly ask for reconsideration of GitHub - tc39/proposal-enum: Proposal for ECMAScript enums. I've been using NodeJS v24 recently and I am loving the typescript stripping. But enums are a pain. Yo…

---

## [Question about trailing comma handling in Arguments vs ImportCall](https://es.discourse.group/t/question-about-trailing-comma-handling-in-arguments-vs-importcall/2395)

<div class="topic-metadata">

**Author:** [@d01c2](https://es.discourse.group/u/d01c2)\
**Replies:** 2\
**Last updated:** [July 6, 2025, 11:33pm UTC](https://es.discourse.group/t/question-about-trailing-comma-handling-in-arguments-vs-importcall/2395 "2025-07-06T23:33:04Z")

</div>

Hello, I've noticed proposal-import-attributes is just finished and included in ES2025. While examining the updated syntax, I came across an interesting difference in how trailing commas are handled between Arguments and…

---

## [How to know the latest test262 commit that corresponds to ecma262’s main?](https://es.discourse.group/t/how-to-know-the-latest-test262-commit-that-corresponds-to-ecma262-s-main/2378)

<div class="topic-metadata">

**Author:** [@stonechoe](https://es.discourse.group/u/stonechoe)\
**Replies:** 4\
**Last updated:** [June 5, 2025, 10:38pm UTC](https://es.discourse.group/t/how-to-know-the-latest-test262-commit-that-corresponds-to-ecma262-s-main/2378 "2025-06-05T22:38:09Z")

</div>

Hi all, I’ve noticed that the test262 repository often contains tests for proposals or spec changes that haven’t yet landed in the main branch of ecma262. I’m trying to find a reliable way to determine which commit in …

---

## [How exactly work engine that throws "Unhandled rejection in promise" ?](https://es.discourse.group/t/how-exactly-work-engine-that-throws-unhandled-rejection-in-promise/2366)

<div class="topic-metadata">

**Author:** [@6562680](https://es.discourse.group/u/6562680)\
**Replies:** 2\
**Last updated:** [May 11, 2025, 3:23pm UTC](https://es.discourse.group/t/how-exactly-work-engine-that-throws-unhandled-rejection-in-promise/2366 "2025-05-11T15:23:30Z")

</div>

Hi, folks. Am trying to implement Promise in other programming language, and i almost succeded except one thing - i cant understand how to throw exception when promise processing is finished with rejected promise... Ex…

[Next page](https://es.discourse.group/c/i-have-questions/14.md?page=1)
