tl;dr: We are looking for feedback on the Temporal proposal. Try out the polyfill, and complete the survey; but don't use it in production yet! JavaScript Date is broken in ways that cannot be fixed without breaking the web. As the story goes, it was included in the original 10-day JavaScript engine hack and based on java.util.Date, which itself was deprecated in 1997 due to being a terrible API a
An implementation of ECMA-262 in JavaScript Goals 100% Spec Compliance Introspection Ease of modification Non-Goals Speed at the expense of any of the goals This project is bound by a Code of Conduct. Join us in #engine262:matrix.org. While helping develop new features for JavaScript, I've found that one of the most useful methods of finding what works and what doesn't is being able to actually ru
JavaScript "loose" comparison step by step When you start learning JavaScript, you will likely read about preferring to use === over == to compare values. But why? == performs type conversion: If the two values are not of the same data type, they are converted to the same type first. While this seems, and can be, convenient, this process is not necessarily intuitive. Below you can provide two valu
Toggle shortcuts help? Toggle "can call user code" annotationsu Toggle early exit annotationse Navigate to/from multipagem Jump to search box/ Toggle pinning of the current clausep Jump to the nth pin1-9 Jump to the 10th pin0 Jump to the most recent link target` Multipage preference No preference Always single-page Always multi-page Introduction1 Scope+2 Conformance2.1 Example Normative Optional C
Q1.について 標準化されていないと思います。 私も、7.2 The Window object - HTML Standardを見ましたが、 該当するような箇所は見つかりませんでした。 w3cの仕様でもそうですね。 Q2.について 他のイベントが発火したら書き換えられる不安定なもの、という意味では、 イベントハンドラで処理している間に他のスレッドから書き換えられる事は、 仕様上は無いので、問題なさそうです。 ブラウザにバグがあって仕様を満たしていない場合は、 どうしようもありませんが。 Javascriptでのスレッドは、メインのスレッド1つと、Web Workerのスレッドしかなく、 Web Workerからはwindowオブジェクトを参照、操作できないためです。 Javascriptがシングルスレッドという事について 仕様のどの部分によるものか、私も気になっていましたので、 この機会
const assert = require('assert'); const matchAll = require('string.prototype.matchall'); const str = 'aabc'; const nonRegexStr = 'ab'; const globalRegex = /[ac]/g; const nonGlobalRegex = /[bc]/i; // non-regex arguments are coerced into a global regex assert.deepEqual( [...matchAll(str, nonRegexStr)], [...matchAll(str, new RegExp(nonRegexStr, 'g'))] ); assert.deepEqual([...matchAll(str, globalRegex
TLDR: If this is used without super (which should be statically analyzable), let it refer to Object.create(new.target.prototype). Otherwise, let super creates what it refers to. I know the reason to force super in derived class's constructor is to make sure this refers to the exotic object the base class might allocate. But I bet in real world, extending base classes who only create ordinary objec
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く