yuki-kimoto / SPVM

SPVM Language
https://metacpan.org/pod/SPVM
MIT License
60 stars 14 forks source link

Regex degration. #515

Closed yuki-kimoto closed 2 months ago

yuki-kimoto commented 2 months ago

Regex degration.

PERL_DL_NONLAZY=1 "/home/kimoto/perl5/perlbrew/perls/perl-5.36.0/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/basic.t .. 1/? TestCase::Regex::anon_method::1684::43 (0x55665d9ce240) {
}
  Regex->buffer_replace_common at /home/kimoto/labo/modules/SPVM-Regex/blib/lib/SPVM/Regex.spvm line 184
The $replace must be a string or a Regex::Replacer object
  Regex->buffer_replace_common at /home/kimoto/labo/modules/SPVM-Regex/blib/lib/SPVM/Regex.spvm line 185
  Regex->replace_common at /home/kimoto/labo/modules/SPVM-Regex/blib/lib/SPVM/Regex.spvm line 85
  Regex->replace_g at /home/kimoto/labo/modules/SPVM-Regex/blib/lib/SPVM/Regex.spvm line 78
  TestCase::Regex->extra_url_escape at /home/kimoto/labo/modules/SPVM-Regex/t/lib/SPVM/TestCase/Regex.spvm line 1684
    XS_SPVM__ExchangeAPI__xs_call_method at SPVM.xs line 1961
 at /home/kimoto/perl5/perlbrew/perls/perl-5.36.0/lib/site_perl/5.36.0/x86_64-linux/SPVM/ExchangeAPI.pm line 295.
        SPVM::ExchangeAPI::call_method(SPVM::ExchangeAPI=HASH(0x55665baf68d8), "TestCase::Regex", "extra_url_escape", "foo\x{3042}bar\x{3044}") called at /home/kimoto/perl5/perlbrew/perls/perl-5.36.0/lib/site_perl/5.36.0/x86_64-linux/SPVM/Global.pm line 227
        eval {...} called at /home/kimoto/perl5/perlbrew/perls/perl-5.36.0/lib/site_perl/5.36.0/x86_64-linux/SPVM/Global.pm line 227
        SPVM::Global::__ANON__("SPVM::TestCase::Regex", "foo\x{3042}bar\x{3044}") called at t/basic.t line 57
 at /home/kimoto/perl5/perlbrew/perls/perl-5.36.0/lib/site_perl/5.36.0/x86_64-linux/SPVM/Global.pm line 229.
        SPVM::Global::__ANON__("SPVM::TestCase::Regex", "foo\x{3042}bar\x{3044}") called at t/basic.t line 57
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 255 just after 27.
t/basic.t .. Dubious, test returned 255 (wstat 65280, 0xff00)
All 27 subtests passed
yuki-kimoto commented 2 months ago

This is not SPVM bug. This is Regex bug.

yuki-kimoto commented 2 months ago

This is SPVM problem.

yuki-kimoto commented 2 months ago

Fixed. 92a9afb55de586423c8031dc17921b8dc3ba4027