#ecmascript — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #ecmascript, aggregated by home.social.
-
-
-
The global object in browsers, window, has ~229 enumerable properties (in Firefox in an empty document). So `{ ...window }` gives you a huge object. `document` in contrast only has one enumerable property, `location`, so `{ ...document }` is small.
#ECMAScript -
The global object in browsers, window, has ~229 enumerable properties (in Firefox in an empty document). So `{ ...window }` gives you a huge object. `document` in contrast only has one enumerable property, `location`, so `{ ...document }` is small.
#ECMAScript -
Random #ECMAScript fact: You can “safely” spread garbage into an object literal, including { ...undefined }, { ...0 }, { ...false }, { ...()=>{} }, { ...new Date }. Only enumerable own properties of objects are copied, basically what comes out of `Reflect.ownKeys(obj).filter((prop) => Object.getOwnPropertyDescriptor(obj, prop).enumerable)`.
https://tc39.es/ecma262/#sec-runtime-semantics-propertydefinitionevaluation
https://tc39.es/ecma262/#sec-copydataproperties -
Random #ECMAScript fact: You can “safely” spread garbage into an object literal, including { ...undefined }, { ...0 }, { ...false }, { ...()=>{} }, { ...new Date }. Only enumerable own properties of objects are copied, basically what comes out of `Reflect.ownKeys(obj).filter((prop) => Object.getOwnPropertyDescriptor(obj, prop).enumerable)`.
https://tc39.es/ecma262/#sec-runtime-semantics-propertydefinitionevaluation
https://tc39.es/ecma262/#sec-copydataproperties -
Модель исполнения JavaScript по спецификации ECMAScript: call stack, контексты, окружения и замыкания
Я довольно долго был уверен, что понимаю, как работает call stack. Ну а что там понимать? Положил кадр, снял кадр, LIFO. Потом открыл спецификацию. Оказалось, за «стеком вызовов» стоит каркас из пяти сущностей, а половина привычных объяснений просто не совпадает с текстом стандарта. Замыкание — не фича языка, а побочный эффект того, что окружение живёт отдельно от кадра. «Область видимости» — вообще не сущность: такого термина там нет. А слов event loop, microtask и task queue в ECMA-262 ровно ноль. Проверяется грепом за минуту. Разбираю модель исполнения по первоисточнику: агент, контекст, окружения, джобы. Каждое утверждение сверено с текстом стандарта, номера параграфов проставлены — можно перепроверять за мной. Разобрать по спецификации
https://habr.com/ru/articles/1063168/
#JavaScript #ECMAScript #execution_context #контекст_выполнения #замыкания #область_видимости #ECMA262 #call_stack #event_loop #лексическое_окружение
-
Fun with #JavaScript
10:55:59.519 Symbol("t").toString()
10:55:59.536 "Symbol(t)"
10:56:06.138 [Symbol("t")].toString()
10:56:06.157 Uncaught TypeError: can't convert symbol to string🤔 🤷 🫤 oh, well, you could, just one line up.
Reason: The Array.toString() has a trip through Array.join() which uses the Ecmascript ToString abstraction which, for whatever reason, is defined as: if Symbol then throw. 💥
-
What’s New in ECMAScript 2026, by @pawelgrzybek:
https://pawelgrzybek.com/whats-new-in-ecmascript-2026/?ref=frontenddogma.com
-
What’s New in ECMAScript 2026, by @pawelgrzybek:
https://pawelgrzybek.com/whats-new-in-ecmascript-2026/?ref=frontenddogma.com
-
Что нового в ECMAScript 2026. Павел Гжибек разбирает возможности новой спецификации: Array.fromAsync, Error.isError(), Math.sumPrecise для точного суммирования чисел с плавающей точкой, конвертация Uint8Array в Base64 и Hex, Iterator.concat() для объединения итераторов, доступ к исходному тексту в JSON.parse и Map.getOrInsert() для вставки значений. #ecmascript #js
-
Что нового в ECMAScript 2026. Павел Гжибек разбирает возможности новой спецификации: Array.fromAsync, Error.isError(), Math.sumPrecise для точного суммирования чисел с плавающей точкой, конвертация Uint8Array в Base64 и Hex, Iterator.concat() для объединения итераторов, доступ к исходному тексту в JSON.parse и Map.getOrInsert() для вставки значений. #ecmascript #js
-
What’s new in ECMAScript 2026. @pawelgrzybek walks through the features shipping in the new spec: Array.fromAsync, Error.isError(), Math.sumPrecise for accurate floating-point sums, Uint8Array Base64 and Hex conversion, Iterator.concat() for sequencing, JSON.parse source text access, and Map.getOrInsert() for upserts. #ecmascript #js
-
What’s new in ECMAScript 2026. @pawelgrzybek walks through the features shipping in the new spec: Array.fromAsync, Error.isError(), Math.sumPrecise for accurate floating-point sums, Uint8Array Base64 and Hex conversion, Iterator.concat() for sequencing, JSON.parse source text access, and Map.getOrInsert() for upserts. #ecmascript #js
-
Les nouveautés dans JavaScript en 2026, expliquées succintement avec des exemples.
-
#Development #Overviews
What’s new in ECMAScript 2026 · This year’s additions explained with examples https://ilo.im/16ebum_____
#Programming #Coding #JavaScript #EcmaScript #EcmaScript2026 #WebDev #Frontend #Backend -
#Development #Overviews
What’s new in ECMAScript 2026 · This year’s additions explained with examples https://ilo.im/16ebum_____
#Programming #Coding #JavaScript #EcmaScript #EcmaScript2026 #WebDev #Frontend #Backend -
-
-
I have finally released version 1.0 of hyperguard library that I have written 4 years ago, but has been sitting in version 0.1, 0.2, and finally 0.3 without any update since.
Version 1 improved the API, and some refactoring was made to remove the reliance of the `any` type.
Anyways, check it out. https://github.com/shovon/hyperguard
#TypeScript #JavaScript #NodeJS #BunJS #Deno #ECMA262 #ECMAScript
-
I have finally released version 1.0 of hyperguard library that I have written 4 years ago, but has been sitting in version 0.1, 0.2, and finally 0.3 without any update since.
Version 1 improved the API, and some refactoring was made to remove the reliance of the `any` type.
Anyways, check it out. https://github.com/shovon/hyperguard
#TypeScript #JavaScript #NodeJS #BunJS #Deno #ECMA262 #ECMAScript
-
I did a transition from Date to Temporal API on the backend side of one of my projects. The nice one is when you already use Intl.DateTimeFormat, you don't have to change anything in this area. Intl accepts both, Date and Temporal values.
-
ESupgrade is finally on feature parity with Baseline 2025, with 2026 up next.
Special thanks to @mdn for maintaining detailed browser compatibility data and @developers for the #Baseline initiative!
Moreover, thanks to all the projects that have already adopted the pre-commit hook and help to stop bugs.
https://github.com/codingjoe/esupgrade
#JavaScript #ECMAScript #Browser #OpenSource #AI #TypeScript
-
ESupgrade is finally on feature parity with Baseline 2025, with 2026 up next.
Special thanks to @mdn for maintaining detailed browser compatibility data and @developers for the #Baseline initiative!
Moreover, thanks to all the projects that have already adopted the pre-commit hook and help to stop bugs.
https://github.com/codingjoe/esupgrade
#JavaScript #ECMAScript #Browser #OpenSource #AI #TypeScript
-
Wenn du aus der Java-Welt kommst, wirken Begriffe wie JavaScript, TypeScript, Angular, React, Vue, Node.js oder npm am Anfang schnell wie ein einziger großer Themenblock. Genau da entsteht oft die eigentliche Verwirrung. Alles klingt ähnlich, vieles taucht im gleic...
#Coding #JavaScript #Angular #TypeScript #React #Node #Vite #Webpack #ESLint #Maven #Paketmanager #ECMAScript #Programming
-
One Open-source Project Daily
JavaScript Style Guide, with linter & automatic code fixer
https://github.com/standard/standard
#1ospd #opensource #development #ecmascript #es6 #eslint #javascript #linter #nodejs #standard #staticcodeanalysis #styleguide -
One Open-source Project Daily
JavaScript Style Guide, with linter & automatic code fixer
https://github.com/standard/standard
#1ospd #opensource #development #ecmascript #es6 #eslint #javascript #linter #nodejs #standard #staticcodeanalysis #styleguide -
Soon We Can Finally Banish JavaScript to the ShadowRealm, by @Wilto (@csstricks):
https://css-tricks.com/soon-we-can-finally-banish-javascript-to-the-shadowrealm/
-
Soon We Can Finally Banish JavaScript to the ShadowRealm, by @Wilto (@csstricks):
https://css-tricks.com/soon-we-can-finally-banish-javascript-to-the-shadowrealm/
-
Soon we can finally banish JavaScript to the ShadowRealm. @Wilto walks through the TC39 ShadowRealm proposal, which creates isolated execution contexts with their own pristine globals while running on the same thread as the host. With just two methods, evaluate() and importValue(), ShadowRealms could sandbox third-party scripts, ads, and test suites without polluting the main realm. Currently at Stage 2.7, not yet in browsers. #js #ecmascript
https://css-tricks.com/soon-we-can-finally-banish-javascript-to-the-shadowrealm/
-
Soon we can finally banish JavaScript to the ShadowRealm. @Wilto walks through the TC39 ShadowRealm proposal, which creates isolated execution contexts with their own pristine globals while running on the same thread as the host. With just two methods, evaluate() and importValue(), ShadowRealms could sandbox third-party scripts, ads, and test suites without polluting the main realm. Currently at Stage 2.7, not yet in browsers. #js #ecmascript
https://css-tricks.com/soon-we-can-finally-banish-javascript-to-the-shadowrealm/
-
Скоро мы наконец сможем отправить JavaScript в ShadowRealm. Мэт Маркиз разбирает предложение TC39 ShadowRealm, создающее изолированные контексты исполнения с собственными глобальными объектами в том же потоке, что и основной хост. Двух методов evaluate() и importValue() достаточно, чтобы изолировать сторонние скрипты, рекламу и тесты без загрязнения основного окружения. Сейчас на стадии 2.7, в браузерах пока нет. #js #ecmascript
https://css-tricks.com/soon-we-can-finally-banish-javascript-to-the-shadowrealm/
-
Скоро мы наконец сможем отправить JavaScript в ShadowRealm. Мэт Маркиз разбирает предложение TC39 ShadowRealm, создающее изолированные контексты исполнения с собственными глобальными объектами в том же потоке, что и основной хост. Двух методов evaluate() и importValue() достаточно, чтобы изолировать сторонние скрипты, рекламу и тесты без загрязнения основного окружения. Сейчас на стадии 2.7, в браузерах пока нет. #js #ecmascript
https://css-tricks.com/soon-we-can-finally-banish-javascript-to-the-shadowrealm/
-
What’s Actually New in JavaScript (and What’s Coming Next), by @neciudan.dev:
https://neciudan.dev/whats-new-in-javascript
#javascript #ecmascript #standards #retrospectives #outlooks
-
What’s Actually New in JavaScript (and What’s Coming Next), by @neciudan.dev:
https://neciudan.dev/whats-new-in-javascript
#javascript #ecmascript #standards #retrospectives #outlooks
-
RE: https://techhub.social/@vintprox/112393461619782109
One schizo thread for a riddle that didn't even make it into the final game. I feel like it's a ploy #HerInteractive made for making their trailer look "futuristic". Well, as a developer myself, I'll say that this poor attempt at mockery won't go unseen.
What you see here is some random snippet of FTP software written in Node.js. Whether it was stolen or not does not concern me (and believe me, I tried to find any matches with existing open source code on the Internet, to no avail). What concerns me is that they just had to obfuscate it - there is no reason for this whatsoever. No hidden clue in this, only a big ball of nothing.
#NancyDrew #ND34 #NancyDrewMYsteryOfTheSevenKeys #NodeJS #ECMAScript #JavaScript
-
RE: https://techhub.social/@vintprox/112393461619782109
One schizo thread for a riddle that didn't even make it into the final game. I feel like it's a ploy #HerInteractive made for making their trailer look "futuristic". Well, as a developer myself, I'll say that this poor attempt at mockery won't go unseen.
What you see here is some random snippet of FTP software written in Node.js. Whether it was stolen or not does not concern me (and believe me, I tried to find any matches with existing open source code on the Internet, to no avail). What concerns me is that they just had to obfuscate it - there is no reason for this whatsoever. No hidden clue in this, only a big ball of nothing.
#NancyDrew #ND34 #NancyDrewMYsteryOfTheSevenKeys #NodeJS #ECMAScript #JavaScript
-
#Development #Releases
What’s actually new in JavaScript · What we can use today, tomorrow, and with AI tools https://ilo.im/16cc1c_____
#EcmaScript #ES2025 #ES2026 #AI #ClaudeCode #WebDev #Frontend #JavaScript -
#Development #Releases
What’s actually new in JavaScript · What we can use today, tomorrow, and with AI tools https://ilo.im/16cc1c_____
#EcmaScript #ES2025 #ES2026 #AI #ClaudeCode #WebDev #Frontend #JavaScript -
What to Know in JavaScript (2026 Edition), by @chriscoyier (@frontendmasters.com):
https://frontendmasters.com/blog/what-to-know-in-javascript-2026-edition/
#javascript #ecmascript #standards #frameworks #runtimes #tooling #testing #npm
-
What to Know in JavaScript (2026 Edition), by @chriscoyier (@frontendmasters.com):
https://frontendmasters.com/blog/what-to-know-in-javascript-2026-edition/
#javascript #ecmascript #standards #frameworks #runtimes #tooling #testing #npm
-
[Перевод] Основные элементы экосистемы JavaScript по состоянию на 2026 год
Ранее мы писали похожие статьи о CSS , но JavaScript заслуживает не меньшего внимания! Тем более что JavaScript лучше справляется с версионированием. Мы рассмотрим новые возможности самого языка, а также основные среды выполнения, фреймворки, библиотеки и инструменты.
https://habr.com/ru/articles/1021182/
#javascript #js #typescript #ts #nodejs #npm #vite #ecmascript #nextjs #react
-
i made this game back in 2016 just as a demo to test my vizflow engine... and to vent at the politics at the time. kind of amazed it still works! and also kind of amazed that the politics of the times have only gotten worse!
but, it might still serve its original purpose :)
https://vizflow.github.io/vizflow/examples/electionfighter/
#html #webdev #games #FOSS #vizflow #electionFighter #election #fighter #politics #politricks #FLOSS #javascript #ecmascript #JS #gamedev #indie #indiegame #spritesheet #animation #visualization
-
i made this game back in 2016 just as a demo to test my vizflow engine... and to vent at the politics at the time. kind of amazed it still works! and also kind of amazed that the politics of the times have only gotten worse!
but, it might still serve its original purpose :)
https://vizflow.github.io/vizflow/examples/electionfighter/
#html #webdev #games #FOSS #vizflow #electionFighter #election #fighter #politics #politricks #FLOSS #javascript #ecmascript #JS #gamedev #indie #indiegame #spritesheet #animation #visualization
-
#Development #Overviews
What to know in JavaScript 2026 · ECMAScript, frameworks, runtimes, build tools, testing, npm https://ilo.im/16bwb5_____
#EcmaScript #JavaScript #TypeScript #Runtimes #Bundlers #Frameworks #Npm #DevOps #WebDev #Frontend #Backend -
#Development #Overviews
What to know in JavaScript 2026 · ECMAScript, frameworks, runtimes, build tools, testing, npm https://ilo.im/16bwb5_____
#EcmaScript #JavaScript #TypeScript #Runtimes #Bundlers #Frameworks #Npm #DevOps #WebDev #Frontend #Backend -
Temporal: девятилетний путь к исправлению времени в JavaScript. Джейсон Уильямс рассказывает, как предложение Temporal прошло от идеи до Stage 4, заменив устаревший Date API, унаследованный от Java в 1995 году. В статье описаны иммутабельные объекты, явная поддержка часовых поясов и наносекундная точность, а также temporal_rs — общая библиотека на Rust, позволяющая нескольким движкам использовать одну реализацию. #ecmascript #temporal
-
Temporal: девятилетний путь к исправлению времени в JavaScript. Джейсон Уильямс рассказывает, как предложение Temporal прошло от идеи до Stage 4, заменив устаревший Date API, унаследованный от Java в 1995 году. В статье описаны иммутабельные объекты, явная поддержка часовых поясов и наносекундная точность, а также temporal_rs — общая библиотека на Rust, позволяющая нескольким движкам использовать одну реализацию. #ecmascript #temporal
-
Temporal: the 9-year journey to fix time in JavaScript. @jasonwilliams traces how the Temporal proposal went from idea to Stage 4, replacing the legacy Date API inherited from Java in 1995. The article covers immutable objects, explicit timezone support, and nanosecond precision, along with temporal_rs, a shared Rust library that lets multiple engines collaborate on one implementation. #ecmascript #temporal
-
Temporal: the 9-year journey to fix time in JavaScript. @jasonwilliams traces how the Temporal proposal went from idea to Stage 4, replacing the legacy Date API inherited from Java in 1995. The article covers immutable objects, explicit timezone support, and nanosecond precision, along with temporal_rs, a shared Rust library that lets multiple engines collaborate on one implementation. #ecmascript #temporal
-
#Development #Overviews
Temporal · The 9-year journey to fix time in JavaScript https://ilo.im/16bbdn_____
#Programming #Coding #JavaScript #EcmaScript #ES2026 #NodeJS #APIs #Browsers #WebDev #Frontend #Backend -
TypeScript 6 Beta Released: Transitioning to TypeScript 7
https://techlife.blog/posts/typescript-6-beta-release/
#TypeScript #JavaScript #ECMAScript #Coding #Programming #technews #softwareDevelopment
-
#TypeScript nerds, can you help me out?
I have a type called DeepRequired that recursively makes optional properties in nested object required using dot notation as seen below.
The problem is: It is only somewhat working. I believe, I'm on the right track somewhere but I can't get closer than this.
Thanks in advance!
1/2
#FollowerPower #amCoding #amProgramming #softwareDevelopment #softwareEngineering #webDev #webDevelopment #JavaScript #ECMAScript
-
CW: Angry rant about Javascript, including insults towards its homophobic inventor
WTF!?
So Javascript has these functions to get the nodes in a document…document.createTreeWalkeranddocument.createNodeIteratorthat create aTreeWalkerand aNodeIteratorrespectively.
But because this language is dogshit invented by a complete and utter failure of a homophobic organism, those are of course not compatible with the standard iteration protocols of the language and you can’t just writedocument.createNodeIterator(document.body, NodeFilter.SHOW_TEXT).forEach(n => use(n));, because that would be way too easy!
No,NodeIteratorsandTreeWalkershave their own incompatible interface and there isn’t even an easy way to convert them into an array or something similarly usable, because again, that would require to have more than room-temperature IQ when designing a language, and we all know that homophobes lack that!
Seriously, how has this failure of an excuse for a programming language managed to stay the only language shipped in browsers? Why did google not just force dart into chrome and tell people to use something that’s at least slightly less shitty?
Like how many different sequentially accessible container types that all have different and incompatible interfaces and are various degrees of difficult to turn into something usable does this crap have?
#Javascript #ecmascript #js #webdev -
#Development #Introductions
Date is out, Temporal is in · JavaScript will soon have modern date handling https://ilo.im/169o2x_____
#Dates #Temporal #JavaScript #EcmaScript #ES262 #Browser #WebStandards #WebDev #Frontend