Debian Codegraph @

vendor/mruby-source/doc/mruby3.2.md

raw
1 # User visible changes in `mruby3.2` from `mruby3.1`
2
3 # The language
4
5 - Now `a::B = c` should evaluate `a` then `c`.
6 - Anonymous arguments `*`, `**`, `&` can be passed for forwarding.
7 - Multi-precision integer is available now via `mruby-bigint` gem.
8
9 # mruby VM and bytecode
10
11 - `OP_ARYDUP` was renamed to `OP_ARYSPLAT`. The instruction name
12 was changed but instruction number and basic behavior have not
13 changed (except that `ARYDUP nil` makes `[]`).
14
15 # Tools
16
17 ## `mruby`
18
19 - `-b` only specifies the script is the binary. The files loaded by `-r` are not affected by the option.
20 - `mruby` now loads complied binary if the suffix is `.mrb`.
21
22 ## `mrbc`
23
24 - Add `--no-optimize` option to disable optimization.
25
26 # mrbgems
27
28 ## mruby-class-ext
29
30 - Add `Class#subclasses` method.
31 - Add `Module#undefined_instance_methods` method.
32
33 ## New bundled gems
34
35 - mruby-errno from <https://github.com/iij/mruby-errno.git>
36 - mruby-set from <https://github.com/yui-knk/mruby-set.git>
37 - mruby-dir from <https://github.com/iij/mruby-dir.git>
38 - mruby-data
39
40 # Breaking Changes
41
42 ## `mrb_vm_run()` may detach top-level local variables referenced from blocks
43
44 When the `mrb_vm_run()` function (including `mrb_top_run()`) is called,
45 the previous top-level local variables referenced from blocks is detached under either of the following conditions.
46
47 - If the `stack_keep` parameter is given as 0.
48 - If the number of variables in `irep` to be executed is less than the number of previous top-level local variables.
49
50 This change also affects API functions such as `mrb_load_string()` and `mrb_load_file()`.
51 The conditions under which the previous top-level local variables referenced from blocks is detached in these functions are as follows:
52
53 - If the function has no `mrbc_context` pointer parameter, or the `mrbc_context` pointer parameter is set to `NULL`.
54 - If the number of variables held in the `mrbc_context` pointer is less than the number of previous top-level local variables.
55
56 Intentional reliance on previous behavior may cause compatibility problems in your application.
57
58 # CVEs
59
60 Following CVEs are fixed.
61
62 - [CVE-2022-0080](https://nvd.nist.gov/vuln/detail/CVE-2022-0080)
63 - [CVE-2022-0240](https://nvd.nist.gov/vuln/detail/CVE-2022-0240)
64 - [CVE-2022-0326](https://nvd.nist.gov/vuln/detail/CVE-2022-0326)
65 - [CVE-2022-0481](https://nvd.nist.gov/vuln/detail/CVE-2022-0481)
66 - [CVE-2022-0525](https://nvd.nist.gov/vuln/detail/CVE-2022-0525)
67 - [CVE-2022-0570](https://nvd.nist.gov/vuln/detail/CVE-2022-0570)
68 - [CVE-2022-0614](https://nvd.nist.gov/vuln/detail/CVE-2022-0614)
69 - [CVE-2022-0623](https://nvd.nist.gov/vuln/detail/CVE-2022-0623)
70 - [CVE-2022-0630](https://nvd.nist.gov/vuln/detail/CVE-2022-0630)
71 - [CVE-2022-0631](https://nvd.nist.gov/vuln/detail/CVE-2022-0631)
72 - [CVE-2022-0632](https://nvd.nist.gov/vuln/detail/CVE-2022-0632)
73 - [CVE-2022-0717](https://nvd.nist.gov/vuln/detail/CVE-2022-0717)
74 - [CVE-2022-0890](https://nvd.nist.gov/vuln/detail/CVE-2022-0890)
75 - [CVE-2022-1106](https://nvd.nist.gov/vuln/detail/CVE-2022-1106)
76 - [CVE-2022-1212](https://nvd.nist.gov/vuln/detail/CVE-2022-1212)
77 - [CVE-2022-1276](https://nvd.nist.gov/vuln/detail/CVE-2022-1276)
78 - [CVE-2022-1286](https://nvd.nist.gov/vuln/detail/CVE-2022-1286)
79 - [CVE-2022-1934](https://nvd.nist.gov/vuln/detail/CVE-2022-1934)