GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix SYNC_CALL/SYNC_DEST_CALL in node_file.cc · Issue #207 · nodejs/node

Fix SYNC_CALL/SYNC_DEST_CALL in node_file.cc #207

New issue
Copy link
New issue
Copy link
Closed
Closed
Fix SYNC_CALL/SYNC_DEST_CALL in node_file.cc#207
Copy link
Assignees
piscisaureus

Description

@piscisaureus
piscisaureus
opened on Dec 24, 2014
Issue body actions

f16edd2

Something's odd here:

  • This commit breaks symmetry between SYNC_CALL and ASYNC_CALL
  • It causes fs.symlink errors to show the wrong path

Activity

  1. piscisaureus
    self-assigned this
    on Dec 24, 2014
  2. vkurchatkin commented on Dec 24, 2014

    @vkurchatkin
    vkurchatkin
    on Dec 24, 2014
    Contributor
    More actions

    @piscisaureus is it still an issue? f6556b6 was supposed to fix that

  3. piscisaureus
    changed the title [-]Review f16edd2632930e3fbfead4d6d52eeac87824f1a6[/-] [+]Fix SYNC_CALL/SYNC_DEST_CALL in node_file.cc[/+] on Dec 24, 2014
  4. piscisaureus commented on Dec 24, 2014

    @piscisaureus
    piscisaureus
    on Dec 24, 2014
    ContributorAuthor
    More actions

    @vkurchatkin Yes, still an issue.

    (A)SYNC_DEST_CALL is not supposed to be used for symlink. That's because the first argument to symlink() isn't an actual path.

  5. caitp commented on Jan 11, 2015

    @caitp
    caitp
    on Jan 11, 2015
    Contributor
    More actions

    I was thinking:

    Using macros serves some purpose (support for multiple types of arguments), however it has some problems: makes things difficult to debug, a bit overspecialized in some ways, too.

    So, how about using lambda expressions (in addition to macros, or else replacing macros with template functions)?

    For instance, instead of having specialized macros, you don't need variadic macros if the function itself is called using a lambda expression, and error handling could also be handled with lambdas. The compiler can inline these and eliminate dead code, and it should be much easier to debug.

    Variadic macros still have limited toolchain support, and make debugging much harder, so it seems like it could be a good tradeoff

    (I realize this is unrelated to the issue here, but same code area, wanted thoughts on it since it might harm toolchain support a bit. We still aren't using lambdas in v8)

  6. indutny commented on Jan 11, 2015

    @indutny
    indutny
    on Jan 11, 2015
    Member
    More actions

    I'm +1 for template functions.

  7. piscisaureus
    added a commit that references this issue on Jan 31, 2015

    fs: improve error messages

    bc2c85c
  8. piscisaureus
    closed this as completedon Jan 31, 2015
  9. jasongin
    added a commit that references this issue on Mar 29, 2017

    Refcount for v8impl::Reference should be unsigned (nodejs#207)

    375af79
  10. boingoing
    added a commit that references this issue on Apr 6, 2017

    Refcount for v8impl::Reference should be unsigned (nodejs#207)

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

Metadata

Metadata

Assignees

  • @piscisaureus
    piscisaureus

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.