Commit 6cf19103 authored by Sakthipriyan Vairamani's avatar Sakthipriyan Vairamani
Browse files

repl: handle comments properly

As it is, the comments are not handled properly in REPL. So, if the
comments have `'` or `"`, then they are treated as incomplete string
literals and the error is thrown in REPL.

This patch refactors the existing logic and groups everything in a
class.

Fixes: https://github.com/nodejs/node/issues/3421
PR-URL: https://github.com/nodejs/node/pull/3515


Reviewed-By: default avatarBrian White <mscdex@mscdex.net>
Reviewed-By: default avatarJeremiah Senkpiel <fishrock123@rocketmail.com>
parent 32237041
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment