-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
good first issueGood first issueGood first issue
Description
Describe the bug
Running a simple, valid program in the JS.do example website may lead to a valid script terminating.
Error message is:
Operation """": no method found, argument in overloaded package WebPerl::JSObject. exit(255) called, but NO_EXIT_RUNTIME is set, so halting execution but not exiting the runtime or preventing further async execution (build with NO_EXIT_RUNTIME=0, if you want a true shutdown)
To Reproduce
- Open https://js.do/perl/
- Paste and run this program:
use v5.28;
use WebPerl 'js';
use strict;
use warnings;
my $doc = js("document");
say $doc->{location}{href};
my $p = $doc->createElement('p');
$p->{innerText} = "I am perldom";
$p->{style}{cssText} = 'background: green; border: 3px red solid;';
my $container = $doc->{body}->querySelector('div.container');
$container->appendChild( $p );
#1
- Note that the code runs and then show an error message.
- Uncomment the last line, so that '1' is now a statement
- Click run, the code will work without errors.
Expected behavior vs. actual behavior
This code should run identically with or without the trailing constant.
Versions
- Device: desktop
- OS: OSX 10.14.4 (18E226)
- Browser and version: Safari Version 12.1 (14607.1.40.1.4)
- WebPerl: whatever is hosted on js.do
Additional context
Add any other context about the problem here. If applicable, add screenshots to help explain your problem.
Metadata
Metadata
Assignees
Labels
good first issueGood first issueGood first issue