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 +4 -4
- data/ext/quickjsrb/quickjsrb.c +6 -0
- data/lib/quickjs/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cb155f6499b100170fefe4f9e8d3a24eb221bf5cd3363adaae7c1dda6d157f12
|
|
4
|
+
data.tar.gz: 7b51767a21b911a62eab5f561aaebc14461fa9078874491db8163fd92bdced5a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f45ea57fcb653f3f886443fef85ebd9138cdfd0ddff0322ac628a25d18033f6eb23fc81f578951d04af23dff604fe7196efca663cf46d74d1820ef3f346bd7ce
|
|
7
|
+
data.tar.gz: 4e721e1621759230776b78194657de9199e9fc7af61d6b091e31a379b010cd2f7a76ce825d6e693595a2cb12bc7b12d76d9fa9ef683b1b726ef1a8e03851ec06
|
data/ext/quickjsrb/quickjsrb.c
CHANGED
|
@@ -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
|
|
data/lib/quickjs/version.rb
CHANGED
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.
|
|
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:
|
|
11
|
+
date: 2026-01-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|