Skip to content

Commit

Permalink
Fix typo in method name
Browse files Browse the repository at this point in the history
  • Loading branch information
lautis committed Aug 24, 2019
1 parent 9958a20 commit 5e544f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/uglifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def format_lines(lines, options)
end
end

def cotext_lines_message(source, line_no, col)
def context_lines_message(source, line_no, col)
line_index = line_no - 1
lines = source.split("\n")
surround_size = populate_surround_size
Expand All @@ -281,7 +281,7 @@ def cotext_lines_message(source, line_no, col)
def error_message(result, options)
err = result['error']
harmony_msg = harmony? ? '' : harmony_error_message(err['message'])
src_ctx = cotext_lines_message(options[:source], err['line'], err['col'])
src_ctx = context_lines_message(options[:source], err['line'], err['col'])
"#{err['message']}#{harmony_msg}\n#{src_ctx}"
end

Expand Down

0 comments on commit 5e544f5

Please sign in to comment.