Skip to content

global.Mustache triggers JScript runtime error#612

Open
nagaozen wants to merge 1 commit intojanl:masterfrom
nagaozen:patch-5
Open

global.Mustache triggers JScript runtime error#612
nagaozen wants to merge 1 commit intojanl:masterfrom
nagaozen:patch-5

Conversation

@nagaozen
Copy link
Copy Markdown
Contributor

Because ASP/WSH script environments are language agnostic, one cannot assume it can be managed like a first-class javascript object. By changing the javascript global explicit assignment pattern to implicit assignment pattern (less is more) it works as expected.

Error before the change:
Microsoft JScript runtime error '800a01b6'
Object doesn't support this property or method
/lib/axe/classes/Parsers/mustache.asp, line 163

Because ASP/WSH script environments are language agnostic, one cannot assume it can be managed like a first-class javascript object. By changing the javascript global explicit assignment pattern to implicit assignment pattern (less is more) it works as expected.
@phillipj
Copy link
Copy Markdown
Collaborator

Thanks for looking after us @nagaozen. I thought I remembered you got something similar merged last year -> 60c2da8.

Too ensure this regression doesn't sneek its way back in again, any thoughts about writing a unit tests for this fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants