Skip to content

Commit

Permalink
Enable TDZ and block scoping for all testsuite tests
Browse files Browse the repository at this point in the history
Summary: Enable TDZ and block scoping when running all tests by default.

Reviewed By: avp

Differential Revision: D60487783

fbshipit-source-id: 4b9eeb92f476353775e15fa9c7b5b25bc7fc8bc3
  • Loading branch information
neildhar authored and facebook-github-bot committed Nov 13, 2024
1 parent ddc45e3 commit 205d228
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion utils/testsuite/hermes.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
from .progress import TestCaseResult, TestResultCode
from .typing_defs import OptExpectedFailure, PathT

COMPILE_ARGS = ["-test262", "-fno-static-builtins"]
COMPILE_ARGS = [
"-test262",
"-fno-static-builtins",
"-Xes6-block-scoping",
"-Xenable-tdz",
]
ES6_ARGS = ["-Xes6-promise", "-Xes6-proxy"]
EXTRA_RUN_ARGS = ["-Xhermes-internal-test-methods"]
USE_MICROTASK_FLAG = ["-Xmicrotask-queue"]
Expand Down
2 changes: 1 addition & 1 deletion utils/testsuite/test_run_defs.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ async def run_test(self, args: TestRunArgs) -> TestCaseResult:
args.test_file, SkipCategory.HANDLESAN_SKIP_LIST
)
extra_compile_vm_args = deepcopy(args.extra_compile_vm_args)
extra_compile_vm_args.compile_args += ["-Xes6-class", "-Xenable-tdz"]
extra_compile_vm_args.compile_args += ["-Xes6-class"]
compile_run_args = CompileRunArgs(
full_test_name,
test_case.strict_mode,
Expand Down

0 comments on commit 205d228

Please sign in to comment.