Skip to content

Commit

Permalink
require json and securerandom internally
Browse files Browse the repository at this point in the history
hmsk committed Oct 28, 2024
1 parent 63691e7 commit 1fa74d2
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ext/quickjsrb/quickjsrb.c
Original file line number Diff line number Diff line change
@@ -523,6 +523,8 @@ VALUE vm_m_initialize_quickjs_error(VALUE self, VALUE r_message, VALUE r_js_name

RUBY_FUNC_EXPORTED void Init_quickjsrb(void)
{
rb_require("json");
rb_require("securerandom");
VALUE rb_mQuickjs = rb_define_module("Quickjs");
r_define_constants(rb_mQuickjs);

2 changes: 0 additions & 2 deletions lib/quickjs.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# frozen_string_literal: true

require "timeout"
require "json"
require "securerandom"
require_relative "quickjs/version"
require_relative "quickjs/quickjsrb"

0 comments on commit 1fa74d2

Please sign in to comment.