Skip to content

3.3.1 typeof none_existent_identifier evaluates to 'string' instead of 'undefined' #36

Description

@Kafva

Steps to reproduce

The typeof operator in jintr does not seem to work like it does in node / browser:

import { Jinter } from 'jintr';
const jinter = new Jinter();
jinter.evaluate('console.log(typeof none_existent_identifier)');
// => string

With node and in Firefox console I get:

> typeof none_existent_identifier
'undefined'

Failure Logs

string

Expected behavior

typeof non_existent_identifier returns 'undefined'

Current behavior

typeof non_existent_identifier returns 'string'

Version

Edge

Anything else?

No response

Checklist

  • I am running the latest version.
  • I checked the documentation and found no answer.
  • I have searched the existing issues and made sure this is not a duplicate.
  • I have provided sufficient information.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions