Skip to content

SIGABRT when reading nonexistent array members #30

Open

Description

@FGasper
#!perl

use strict;
use warnings;

use FindBin;
use blib;

use JavaScript::Duktape::XS;

my $js = JavaScript::Duktape::XS->new();

$js->eval(
    qq<
        var croaker = function() { throw "hahaha" };
        var got = [];
        try {
            croaker();
        }
        catch(e) {
            got[1] = e;
        }

        got
    >
);

… yields SIGABRT, with the following output:

duktape fatal error, aborting: uncaught: 'cannot read property 1 of undefined'

Activity

  1. changed the title [-]SIGABRT on try/catch[/-] [+]SIGABRT when reading nonexistent array members[/+] on Nov 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions