quickjs 0.11.0 → 0.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e79081c82cb9b414f3c77b44883c6e025558aea6c3000f204b7da4df411642e4
4
- data.tar.gz: 8d0be576f2b301e793e767f8f3a9c7529856e6694d2655beaf14efeb85aab043
3
+ metadata.gz: cb155f6499b100170fefe4f9e8d3a24eb221bf5cd3363adaae7c1dda6d157f12
4
+ data.tar.gz: 7b51767a21b911a62eab5f561aaebc14461fa9078874491db8163fd92bdced5a
5
5
  SHA512:
6
- metadata.gz: 12404c2ffe3dbc5021eefbf6b8b42bdb9a74d2aa649b55eeb57ad92dbb9330c2d95834401af7a8a8471bc85db0adeebd3d877c5d46b421bc0320b356671253b3
7
- data.tar.gz: 387ef0a683d6169e113a3488208c8a75d7409e574eddecc416c059cf9d0d0282b1c3a0c267c54b5b74a2065bb843da5a90070db9c33b34ddc86b9919e7161990
6
+ metadata.gz: f45ea57fcb653f3f886443fef85ebd9138cdfd0ddff0322ac628a25d18033f6eb23fc81f578951d04af23dff604fe7196efca663cf46d74d1820ef3f346bd7ce
7
+ data.tar.gz: 4e721e1621759230776b78194657de9199e9fc7af61d6b091e31a379b010cd2f7a76ce825d6e693595a2cb12bc7b12d76d9fa9ef683b1b726ef1a8e03851ec06
@@ -588,6 +588,12 @@ static VALUE vm_m_evalCode(VALUE r_self, VALUE r_code)
588
588
  VMData *data;
589
589
  TypedData_Get_Struct(r_self, VMData, &vm_type, data);
590
590
 
591
+ if (!RB_TYPE_P(r_code, T_STRING))
592
+ {
593
+ VALUE r_code_class = rb_class_name(CLASS_OF(r_code));
594
+ rb_raise(rb_eTypeError, "JavaScript code must be a String, got %s", StringValueCStr(r_code_class));
595
+ }
596
+
591
597
  data->eval_time->started_at = clock();
592
598
  JS_SetInterruptHandler(JS_GetRuntime(data->context), interrupt_handler, data->eval_time);
593
599
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Quickjs
4
- VERSION = "0.11.0"
4
+ VERSION = "0.11.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quickjs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - hmsk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-09-23 00:00:00.000000000 Z
11
+ date: 2026-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json