-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Solving issue #7307, 'use strict' context in compatibility.js #7315
Solving issue #7307, 'use strict' context in compatibility.js #7315
Conversation
@@ -591,3 +593,5 @@ if (typeof PDFJS === 'undefined') { | |||
configurable: true | |||
}); | |||
})(); | |||
|
|||
}).call((typeof window === 'undefined') ? this : window); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: missing newline at the end of the file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh sorry, now it should be ok
5ee8261
to
16d6eaf
Compare
@@ -14,7 +14,9 @@ | |||
*/ | |||
/* globals VBArray, PDFJS */ | |||
|
|||
'use strict'; | |||
(function pdfjsWrapper() { | |||
// Use strict in our context only - users might not want it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove (unimportant?) comment and rename pdfjsWrapper
=>compatibilityWrapper
? Looks good after that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed!
4ce5f27
to
1c96cb8
Compare
Thank you for the patch |
Added context to compatibility.js to have 'use strict' directive in our context only.
Solving "'Use strict' in pdfjs context only, compatibility.js #7307"