Peertube-dl/bin/js-pruebas

17 lines
433 B
Plaintext
Raw Normal View History

#!/usr/bin/env perl
2021-01-06 20:47:33 +01:00
#
use strict;
use warnings;
use feature 'say';
use Peertube::DL::Javascript;
2021-01-09 03:55:59 +01:00
my $js = Peertube::DL::Javascript->new;
eval {
say $js->evalJS("if(\"undefined\"!=typeof Reflect&&Reflect.construct){if(a())return Reflect.construct;var b=Reflect.construct;return function(c,d,e){c=b(c,d);e&&Reflect.setPrototypeOf(c,e.prototype);return c}}return function(c,d,e){void 0===e&&(e=c);");
};
if ($@) {
warn $@;
2021-01-06 20:47:33 +01:00
}