diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2022-10-24 18:03:26 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-24 18:03:26 +0900 |
commit | b51b22513f6a2a514a9e614e7a9f6e0df6c0c985 (patch) | |
tree | 00d099e3804c63e9957b7c2c9c0652723a7efcd6 /vm_args.c | |
parent | 6700fa7f62b040b5f69c3c5c3f5dbe740910c990 (diff) | |
download | ruby-b51b22513f6a2a514a9e614e7a9f6e0df6c0c985.tar.gz |
Fix per-instance Regexp timeout (#6621)
Fix per-instance Regexp timeout
This makes it follow what was decided in [Bug #19055]:
* `Regexp.new(str, timeout: nil)` should respect the global timeout
* `Regexp.new(str, timeout: huge_val)` should use the maximum value that
can be represented in the internal representation
* `Regexp.new(str, timeout: 0 or negative value)` should raise an error
Diffstat (limited to 'vm_args.c')
0 files changed, 0 insertions, 0 deletions