TypeError: at jspretty.js:4140

10 views
Skip to first unread message

g6auc

unread,
Apr 21, 2016, 8:03:35 AM4/21/16
to Pretty Diff
Hi Austin,

Today, I updated my Widget Tester and JS Prettifier Widgets to use the latest version of jspretty.js
(4 April 2016 version).
Processing a file lint.js - link sent to you in a private email.
I get TypeError: undefined is not an object (evaluating metameta.length) at jspretty.js:4140.
The identical error also occurs with your prettydiff-master from github.
Options set:

source.length: 14775
insize: 4
inchar: space
preserve: true
inLevel: 0
space: true
braces: knr
comments: noindent
jsscope: true
correct: false
styleguide = "jslint"

Kind regards,

Harry.

in...@prettydiff.com

unread,
Apr 21, 2016, 3:27:00 PM4/21/16
to prett...@googlegroups.com
Hey Harry!!!

I can reproduce the defect. I don't have a resolution yet as I just
started investigating. The resolution will be published in version 2.0.1.

Austin
> --
> You received this message because you are subscribed to the Google Groups
> "Pretty Diff" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to pretty-diff...@googlegroups.com.
> To post to this group, send email to prett...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pretty-diff/fe092d1b-cc7e-4b01-862e-8bce4209e2cd%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>


in...@prettydiff.com

unread,
Apr 21, 2016, 3:50:20 PM4/21/16
to prett...@googlegroups.com
Harry,

I just published a resolution to the 2.0.1 branch on github.

https://github.com/prettydiff/prettydiff/blob/2.0.1/lib/jspretty.js#L4413-L4417

Thanks so much. I will email you back once I merge the branch.

Austin
Reply all
Reply to author
Forward
0 new messages