Make ECMA v6 the default for devtools pretty-printing.

This commit is contained in:
Moonchild 2023-11-01 14:27:24 +01:00 committed by roytam1
commit 17f1bcac4c
2 changed files with 2 additions and 2 deletions

View file

@ -1068,7 +1068,7 @@ var Debugger =
// be either 3, or 5, or 6. This influences support for strict
// mode, the set of reserved words, support for getters and
// setters and other features.
ecmaVersion: 5,
ecmaVersion: 6,
// Turn on `strictSemicolons` to prevent the parser from doing
// automatic semicolon insertion.
strictSemicolons: false,

View file

@ -1299,7 +1299,7 @@ var defaultOptions = {
// be either 3, or 5, or 6. This influences support for strict
// mode, the set of reserved words, support for getters and
// setters and other features.
ecmaVersion: 5,
ecmaVersion: 6,
// Source type ("script" or "module") for different semantics
sourceType: "script",
// `onInsertedSemicolon` can be a callback that will be called