Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

`7.120236347223045e-307` is stringified as `7.1202363472230444e-307`

オープン
#449 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
c, javascript
領域
compilers

調査の方向性

Start by reproducing the value and its stringification in the qjs REPL, comparing the two decimal forms shown in the issue. Trace the JavaScript number stringification path and add coverage for this exact value; done means qjs emits the shorter representation used by the other engines while preserving correct round-tripping.

索引モデルが issue の本文から書いたものです。

説明

I am testing out using quickjs to fuzz typescript-go's JS number implementation more quickly than shelling out to Node.js (by way of https://gitlab.com/cznic/quickjs to avoid cgo, not important for this issue).

One thing showed up in fuzzing. The number value 7.120236347223045e-307 is stringified by quickjs as 7.1202363472230444e-307:

qjs > 7.120236347223045e-307
7.1202363472230444e-307
qjs > 7.1202363472230444e-307
7.1202363472230444e-307

Which seems to be a longer encoding of the same value (based on comparing the bits of both).

V8, SpiderMonkey, JSC, etc, give the shorter encoding:

# V8
d8> 7.120236347223045e-307
7.120236347223045e-307
d8> 7.1202363472230444e-307
7.120236347223045e-307
# spidermonkey
js> 7.120236347223045e-307
7.120236347223045e-307
js> 7.1202363472230444e-307
7.120236347223045e-307
js> 
# javascriptcore
>>> 7.120236347223045e-307
7.120236347223045e-307
>>> 7.1202363472230444e-307
7.120236347223045e-307
主要言語
C
スター
11.1k
フォーク
1.2k
平均マージ
11時間 20分
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

bellard/quickjs のほかの issue

bellard/quickjs の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。