Skip to content

Commit d1b9996

Browse files
committed
Separate common parts of FFI for WASM use
1 parent 4c8e2c8 commit d1b9996

6 files changed

Lines changed: 694 additions & 850 deletions

File tree

lib/prism.rb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,5 @@ def self.load(source, serialized, freeze = false)
127127
# The FFI backend is used on other Ruby implementations.
128128
Prism::BACKEND = :FFI
129129

130-
begin
131-
require_relative "prism/ffi"
132-
rescue LoadError
133-
raise $! unless RUBY_ENGINE == "jruby"
134-
require_relative "prism/wasm"
135-
end
130+
require_relative "prism/ffi"
136131
end

0 commit comments

Comments
 (0)