Skip to content

Commit b81eba8

Browse files
committed
Separate common parts of FFI for WASM use
1 parent e627e55 commit b81eba8

File tree

6 files changed

+694
-850
lines changed

6 files changed

+694
-850
lines changed

lib/prism.rb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,5 @@ def self.find(callable, rubyvm: !!defined?(RubyVM))
141141
# The FFI backend is used on other Ruby implementations.
142142
Prism::BACKEND = :FFI
143143

144-
begin
145-
require_relative "prism/ffi"
146-
rescue LoadError
147-
raise $! unless RUBY_ENGINE == "jruby"
148-
require_relative "prism/wasm"
149-
end
144+
require_relative "prism/ffi"
150145
end

0 commit comments

Comments
 (0)