'Lint a single JavaScript context for JavaScript violations inside a Mako
template.
Arguments:
javascript_code: The template contents of the JavaScript context.
start_offset: The offset of the JavaScript context inside the
original Mako template.
results: A list of results into which violations will be added.
Side effect:
Adds JavaScript violations to results.'

def _check_javascript_context(self, javascript_code, start_offset, results):

    javascript_results = FileResults('')
    self.javascript_linter.check_javascript_file_is_safe(javascript_code, javascript_results)
    self._shift_and_add_violations(javascript_results, start_offset, results)
