mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 932517 - Followup: remove let-block logic in sloppy mode ES6 let declaration check. (rs=evilpie)
This commit is contained in:
parent
9b8eefda97
commit
bd1d8cf2a8
@ -6678,18 +6678,10 @@ Parser<ParseHandler>::shouldParseLetDeclaration(bool* parseDeclOut)
|
||||
|
||||
case TOK_LC:
|
||||
case TOK_LB:
|
||||
// A following name is always a declaration.
|
||||
//
|
||||
// |let {| and |let [| are destructuring declarations.
|
||||
*parseDeclOut = true;
|
||||
break;
|
||||
|
||||
case TOK_LP:
|
||||
// Only parse let blocks for 1.7 and 1.8. Do not expose deprecated let
|
||||
// blocks to content.
|
||||
*parseDeclOut = versionNumber() == JSVERSION_1_7 || versionNumber() == JSVERSION_1_8;
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user