Node: throw false ignored in REPL

Created on 30 Oct 2017  路  1Comment  路  Source: nodejs/node

Node version: 8.6

Steps to reproduce:

$ node
> throw false;
undefined
> throw true
Thrown: true

Most helpful comment

@Ginden i tested this out at my local PR Build of https://github.com/nodejs/node/pull/16574 which is not yet landed.

> throw false
Thrown: false

>All comments

@Ginden i tested this out at my local PR Build of https://github.com/nodejs/node/pull/16574 which is not yet landed.

> throw false
Thrown: false
Was this page helpful?
0 / 5 - 0 ratings

Related issues

akdor1154 picture akdor1154  路  3Comments

willnwhite picture willnwhite  路  3Comments

danielstaleiny picture danielstaleiny  路  3Comments

ksushilmaurya picture ksushilmaurya  路  3Comments

fanjunzhi picture fanjunzhi  路  3Comments