Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tools/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import copy
import difflib
import itertools
import re
from typing import Any

Expand Down Expand Up @@ -326,6 +327,12 @@ def read_js_settings(filename, attrs):
if strict_override:
self.attrs['STRICT'] = strict_override

# Internal consistency check that we don't have unknown / misspelled settings
# in the above sets.
for s in itertools.chain(DEPRECATED_SETTINGS, EXPERIMENTAL_SETTINGS, JS_ONLY_SETTINGS,
PORTS_SETTINGS, MEM_SIZE_SETTINGS, INTERNAL_SETTINGS):
assert s in self.attrs, f'non-existent setting: {s}'

def infer_types(self):
for key, value in self.attrs.items():
self.types[key] = type(value)
Expand Down
Loading