Skip to content

Question: strange behavior with ===? #27

@vanodevium

Description

@vanodevium

Is there any chance to support === for subscript? Or it works like this by design?

import subscript from 'subscript';

const answers = ['a'];

console.log(subscript('answers.length === 1 && answers[0] === "a"')({answers}));  // throws error

but if I import justin, there are no problem

import subscript from 'subscript';
import justin from 'subscript/justin';

const answers = ['a'];

console.log(subscript('answers.length === 1 && answers[0] === "a"')({answers})); // true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions