Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fs.util's promisify() method exists but causes error in DukTape #36

Closed
lll000111 opened this issue Dec 10, 2018 · 0 comments
Closed

fs.util's promisify() method exists but causes error in DukTape #36

lll000111 opened this issue Dec 10, 2018 · 0 comments

Comments

@lll000111
Copy link

lll000111 commented Dec 10, 2018

"util" is green on https://www.lowjs.org/documentation/nodejs-api.html and promisify exists.

I tried promisifying a few functions in fs and got

> var readFile = promisify(fs.readFile);
TypeError: undefined not callable (property 'getOwnPropertyDescriptors' of [object Function])
    at [anon] (deps/duktape/src-low/duktape.c:64945) internal
    at promisify (lib:internal/util:294) strict
    at global (repl:1) preventsyield
    at [anon] () native strict preventsyield
    at [anon] (lib:vm:26) strict
    at defaultEval (lib:repl:260) strict
    at onLine (lib:repl:511) strict
    at emit (lib:events:158) strict
    at [anon] (lib:readline:231) strict
    at [anon] (lib:readline:530) strict
    at [anon] (lib:readline:773) strict
    [...]

PS: This is not urgent, I was just curious and experimenting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant