Skip to content

Make mode always u32 and switch to has_mode for StatRes fbs #761

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

Merged
merged 2 commits into from
Sep 17, 2018

Conversation

kevinkassimo
Copy link
Contributor

Using int as mode is a mistake (based on Go's FileMode). Switch back to uint and uses has_mode to represent non-unix case

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - but don’t include unrelated changes

src/flags.rs Outdated
@@ -222,7 +221,6 @@ pub fn v8_set_flags(args: Vec<String>) -> Vec<String> {
let cstr = CStr::from_ptr(*ptr as *const i8);
let slice = cstr.to_str().unwrap();
slice.to_string()
})
.chain(rest.into_iter())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated changes

Copy link
Contributor Author

@kevinkassimo kevinkassimo Sep 17, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ry They are caused by running formatting. Could revert them manually tho, not quite sure if supposed to

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverting them anyways for now

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - Thanks

@ry ry merged commit e3d634e into denoland:master Sep 17, 2018
ry added a commit to ry/deno that referenced this pull request Sep 22, 2018
- Add atob() btoa() denoland#776
- Add deno.arch deno.platform denoland#773
- Add deno.symlink() and deno.symlinkSync() denoland#742
- Add deno.mkdir() and deno.mkdirSync() denoland#746
- Add deno.makeTempDir() denoland#740
- Improvements to FileInfo interface denoland#765, denoland#761
- Add fetch.blob()
- Upgrade V8 to 7.0.276.15
- Upgrade Rust crates
@ry ry mentioned this pull request Sep 22, 2018
ry added a commit that referenced this pull request Sep 22, 2018
- Add atob() btoa() #776
- Add deno.arch deno.platform #773
- Add deno.symlink() and deno.symlinkSync() #742
- Add deno.mkdir() and deno.mkdirSync() #746
- Add deno.makeTempDir() #740
- Improvements to FileInfo interface #765, #761
- Add fetch.blob()
- Upgrade V8 to 7.0.276.15
- Upgrade Rust crates
@kevinkassimo kevinkassimo deleted the fs/mode-fix branch December 27, 2019 07:50
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

Successfully merging this pull request may close these issues.

2 participants