Skip to content
This repository was archived by the owner on Jul 31, 2018. It is now read-only.
This repository was archived by the owner on Jul 31, 2018. It is now read-only.

Parser Interface?: "use strict" with lexing 'irregularities' mishandled #35

Open
@IgnoredAmbience

Description

@IgnoredAmbience

tests/test262/ch14/14.1/14.1-4-s.js tests for

'use str\
ict';

Esprima outputs:

                                {
                                    "type": "ExpressionStatement",
                                    "expression": {
                                        "type": "Literal",
                                        "value": "use strict",
                                        "raw": "'use str\\\r\nict'",
                                        "range": [
                                            579,
                                            594
                                        ]
                                    }

I think we're using the value instead of raw_value?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions