# \_super not defined

**URL:** <https://pdfjs.community/t/super-not-defined/2618>\
**Category:** Bug Reports\
**Created:** [May 31, 2023, 8:36am UTC](https://pdfjs.community/t/super-not-defined/2618 "2023-05-31T08:36:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![justin.spencer](https://avatars.discourse-cdn.com/v4/letter/j/67e7ee/32.png) [@justin.spencer](https://pdfjs.community/u/justin.spencer)\
**Post date:** [May 31, 2023, 8:36am UTC](https://pdfjs.community/t/super-not-defined/2618/1 "2023-05-31T08:36:02Z")

</div>

Hi, this error is causing me problems as I can’t merge/flatten pdfs with polyline annotations at present. I’m using 8.7.3 and it’s the same issue as your online sample.  
I’ve reported this error before at:

> [@Annotation line tools javascript error - "\_super is not defined"](https://pdfjs.community/t/annotation-line-tools-javascript-error-super-is-not-defined/2049):
>
> Using pdf.js express plus 8.7. When I try to use these line tools, I get the following exception “\_super is not defined.” This error looks like a bug to me as there’s no declaration of \_super in the code. Please advise. See uploaded doc for details. It fails in webviewer-core.min.js On (“Custom appearances are unavailable in PDFJS Express.”),\_super.prototype.Dh.call(this,Ua);var cb=document.createElement(“canvas”) There’s no declaration of the variable “\_sup…

Please advise if this is able to be resolved and/if/or it’s something I’m doing wrong. I need to put the pdf merge into production and polyline annotations are a common use-case for us.

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/2X/a/a9271f8fe71362b995eae3140c4ec89bdedbfcb3.png)

Thanks,  
Justin

---

<div class="post-metadata">

**Author:** ![tgordon](https://avatars.discourse-cdn.com/v4/letter/t/aca169/32.png) [@tgordon](https://pdfjs.community/u/tgordon)\
**Post date:** [May 31, 2023, 8:43pm UTC](https://pdfjs.community/t/super-not-defined/2618/3 "2023-05-31T20:43:53Z")

</div>

Hi justin.spencer,

I was able to reproduce this, I will investigate further.  
Through quick investigation it looks like in the code it’s not returning before reaching the \_super call, weird bug!

Best regards,  
Tyler
