gflohr / qgoda

Qgoda (pronounce: yagoda!) is an extensible static site generator with arbitrary taxonomies and cross-links and a strong focus on multilanguage facilities.

Home Page:https://www.qgoda.net/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Javascript::Duktape::XS 0.75+ does not work with qgoda

gflohr opened this issue · comments

The incomplete fix to gonzus/JavaScript-Duktape-XS#13 breaks qgoda ("Perl sub died with error: Cannot find module 'buffer'!").

Fix: Check the version of the Duktape binding and bail out if the version is greater than 0.74.

The problem is that the JavaScript module resolver built into qgoda has JavaScript dependencies that use try/catch blocks. But Perl exceptions can no longer be caught with JavaScript beginning with JavaScript::Duktape::XS version 0.75.