Skip to content

Commit

Permalink
Explicitly load js/require_remote in browser.script.
Browse files Browse the repository at this point in the history
  • Loading branch information
ledsun committed Nov 1, 2023
1 parent e27ac1d commit f576fe8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion ext/js/lib/js.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
require_relative "js/hash.rb"
require_relative "js/array.rb"
require_relative "js/nil_class.rb"
require_relative "js/require_remote.rb"

# The JS module provides a way to interact with JavaScript from Ruby.
#
Expand Down
1 change: 1 addition & 0 deletions packages/npm-packages/ruby-wasm-wasi/src/browser.script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ const compileWebAssemblyModule = async function (
const patchRequireRelative = (vm: RubyVM) => {
const patch = `
require 'js'
require 'js/require_remote'
module Kernel
alias original_require_relative require_relative
Expand Down

0 comments on commit f576fe8

Please sign in to comment.