Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc0e6ba0

Browse files
rubysclaude
andcommitted
Remove non-functional pragma comment from selfhost runtime
The comment `# Pragma: let prismParse = null` was attempting to usea custom raw output format that doesn't exist in the pragma filter.The pragma had no effect since `prismParse_ = nil` already correctlytranspiles to `let prismParse_ = null` at ES2020+.🤖 Generated with [Claude Code](https://claude.com/claude-code)Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent0a39d79 commitc0e6ba0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎lib/ruby2js/selfhost/runtime.rb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ def initialize(prismComment, source, sourceBuffer)
156156
globalThis.Ruby2JS=ruby2js_moduleifruby2js_module
157157
end
158158

159-
# Initialize Prism WASM parser
160-
prismParse_=nil# Pragma: let prismParse = null
159+
# Initialize Prism WASM parser (module-level variable for caching)
160+
prismParse_=nil
161161

162162
exportasyncdefinitPrism
163163
prismParse_ ||=awaitPrism.loadPrism()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp