mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-28 13:13:37 +08:00
Bug: none Change-Id: I47c32ffa1ee9f34bdfccb930d288a364afaa280f Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4675897 Reviewed-by: Simon Zünd <szuend@chromium.org> Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
15 lines
258 B
JavaScript
15 lines
258 B
JavaScript
const constants = { // just for envs without fs
|
|
S_IFMT: 61440,
|
|
S_IFDIR: 16384,
|
|
S_IFCHR: 8192,
|
|
S_IFBLK: 24576,
|
|
S_IFIFO: 4096,
|
|
S_IFLNK: 40960
|
|
}
|
|
|
|
try {
|
|
module.exports = require('fs').constants || constants
|
|
} catch {
|
|
module.exports = constants
|
|
}
|