]> git.parisson.com Git - pdf.js.git/commit
Fix strict mode syntax error in Safari
authorIonuț G. Stan <ionut.g.stan@gmail.com>
Wed, 26 Oct 2011 23:47:18 +0000 (02:47 +0300)
committerIonuț G. Stan <ionut.g.stan@gmail.com>
Wed, 26 Oct 2011 23:47:18 +0000 (02:47 +0300)
commita17b13019b17f71a55c47e829dbbc59b815eb158
tree5fec1cec6c64c8043603bb44392d3e5072b70901
parent8341579fd37f7120d7058f4841e6bc146566b0f9
Fix strict mode syntax error in Safari

This happens in Safari 5.1 and Mobile Safari on iOS 5.

Apparently, Safari considers the function name as part of the ECMA's
FormalParameterList and applies the strict mode rules from section 13.1
of the specification.

> It is a SyntaxError if any Identifier value occurs more than once
> within a FormalParameterList of a strict mode
> FunctionDeclaration or FunctionExpression.
pdf.js