Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

import * as fs from 'fs' discrepancy with esm vs. node experimental modules #516

Closed
dnalborczyk opened this issue Jul 23, 2018 · 1 comment

Comments

@dnalborczyk
Copy link
Contributor

dnalborczyk commented Jul 23, 2018

related: #517

node v10.7.0
esm 3.0.72

// index.mjs
import assert from 'assert'
import * as fs from 'fs'

assert(fs.promises === void 0)
node --experimental-modules index.mjs
# no error

node -r esm index.mjs
# AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value

is this a bug in node? or esm?

@jdalton
Copy link
Member

jdalton commented Aug 3, 2018

v3.0.73 is released 🎉

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

No branches or pull requests

2 participants