Skip to content
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

Merged
merged 1 commit into from
May 12, 2016

Conversation

McGiogen
Copy link
Contributor

Added context to compatibility.js to have 'use strict' directive in our context only.
Solving "'Use strict' in pdfjs context only, compatibility.js #7307"

@@ -591,3 +593,5 @@ if (typeof PDFJS === 'undefined') {
configurable: true
});
})();

}).call((typeof window === 'undefined') ? this : window);
Copy link
Collaborator

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.

Copy link
Contributor Author

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

@@ -14,7 +14,9 @@
*/
/* globals VBArray, PDFJS */

'use strict';
(function pdfjsWrapper() {
// Use strict in our context only - users might not want it
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed!

@McGiogen McGiogen force-pushed the bug-usestrict-compatibilityjs branch from 4ce5f27 to 1c96cb8 Compare May 12, 2016 08:05
@yurydelendik yurydelendik merged commit 1c04335 into mozilla:master May 12, 2016
@yurydelendik
Copy link
Contributor

Thank you for the patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants