Login  Register

Re: Upgrading Asciidoctor.js to the latest version of Asciidoctor

Posted by mojavelinux on Oct 06, 2013; 9:57am
URL: https://discuss.asciidoctor.org/Upgrading-Asciidoctor-js-to-the-latest-version-of-Asciidoctor-tp636p727.html

On Tue, Sep 24, 2013 at 5:08 PM, ggrossetie [via Asciidoctor :: Discussion] <[hidden email]> wrote:

I am now stuck with a Javascript error when running Asciidoctor.js :

Uncaught TypeError: Cannot call method '$[]' of undefined asciidoctor.js:2181
def.$lock_in_subs asciidoctor.js:2181
Lexer.constructor.$next_block asciidoctor.js:4352
Lexer.constructor.$next_section asciidoctor.js:3875
Lexer.constructor.$parse

default_subs = $scope.SUBS is undefined and the $scope is initialized with $scope = AbstractBlock._scope

The SUBS constants from Substituters are not loaded in the "scope" but I don't know why... ideas ?

I'm not sure. Maybe something Opal doesn't support.

We could change the references to SUBS that fall outside of the substutitiors class to an absolute reference. Something like ::Asciidoctor::Substituters::SUBS. See if that works.

-Dan

--