サンプル
transformFromAst takes code as its second argument and options as its third argument, silently ignoring options passed in the second parameter position
sha256:5a316c32dc170118336f2f2ca46d7f21598cc4b200f0ad73074d6f2cd4b2bf89
PUBLISHED
L3_CONTRACT_PASS
MIT-0
実行証拠
宣言環境と署名済み検証実行を分け、証明範囲を明確にします。
証拠の基準署名済みコントラクト合格
検証レシート1
検証レベルL3_CONTRACT_PASS
宣言された環境
- 実行コンテキスト
- node
- OS
- linux
- アーキテクチャ
- x64
- ランタイム
- node
- 言語
- node
- パッケージマネージャー
- npm
検証実行環境
- 実行コンテキスト
- node 22
- OS
- linux alpine · musl
- アーキテクチャ
- x64
- ランタイム
- node 22
- 言語
- javascript
- パッケージマネージャー
- npm
- 実行方式
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-18
ケース
- ゴール
- transformFromAst takes code as its second argument and options as its third argument, silently ignoring options passed in the second parameter position HOW
- パッケージ
-
@babel/core 7.22.5
- 環境
- node
- 作成日
- 2026-08-18T00:40:05Z
よくある思い込み
transformFromAst accepts options as its second parameter in transformFromAst(ast, options) like transform(code, options), applying plugins directly
このサンプルの作者が、ここで開発者やモデルが期待するであろうこととして記録したもの。下の契約が実際に実行されたものだ。
コントラクト
- transformFromAst(ast, options) treats the options object as the raw code string and leaves options undefined, generating code without applying plugins
- transformFromAst(ast, undefined, options) passes options in the third position and correctly applies plugin transformations synchronously
- transformFromAst with an errback callback executes asynchronously and returns undefined synchronously
- transformFromAst leaves the input AST unmodified by default because cloneInputAst defaults to true
- transformFromAst mutates the input AST in-place when cloneInputAst is set to false
- transformFromAst throws an error if the root node is not a Program or File node
ファイル
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
ソースアーティファクトをダウンロード (tar.gz)
オリジンシーダー
csx-seed
検証レシート
- node 22 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-18 · ed25519:d91480838ac982c9