mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:07:47 +00:00
LibJS+LibLine: Run clang-format
This commit is contained in:
parent
92e0378dbd
commit
88e7d44cc4
3 changed files with 3 additions and 3 deletions
|
@ -9,8 +9,8 @@
|
||||||
#include <AK/String.h>
|
#include <AK/String.h>
|
||||||
#include <LibJS/Forward.h>
|
#include <LibJS/Forward.h>
|
||||||
#include <LibJS/Heap/Cell.h>
|
#include <LibJS/Heap/Cell.h>
|
||||||
#include <LibJS/Runtime/Value.h>
|
|
||||||
#include <LibJS/Runtime/Utf16String.h>
|
#include <LibJS/Runtime/Utf16String.h>
|
||||||
|
#include <LibJS/Runtime/Value.h>
|
||||||
|
|
||||||
namespace JS {
|
namespace JS {
|
||||||
|
|
||||||
|
@ -31,6 +31,7 @@ public:
|
||||||
bool has_utf16_string() const { return m_has_utf16_string; }
|
bool has_utf16_string() const { return m_has_utf16_string; }
|
||||||
|
|
||||||
Optional<Value> get(GlobalObject&, PropertyKey const&) const;
|
Optional<Value> get(GlobalObject&, PropertyKey const&) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
virtual const char* class_name() const override { return "PrimitiveString"; }
|
virtual const char* class_name() const override { return "PrimitiveString"; }
|
||||||
|
|
||||||
|
|
|
@ -228,7 +228,7 @@ void Editor::get_terminal_size()
|
||||||
// terminal which is far from useful
|
// terminal which is far from useful
|
||||||
if (int fd = open("/dev/tty", O_RDONLY); fd != -1) {
|
if (int fd = open("/dev/tty", O_RDONLY); fd != -1) {
|
||||||
ioctl(fd, TIOCGWINSZ, &ws);
|
ioctl(fd, TIOCGWINSZ, &ws);
|
||||||
close (fd);
|
close(fd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m_num_columns = ws.ws_col;
|
m_num_columns = ws.ws_col;
|
||||||
|
|
|
@ -37,7 +37,6 @@ bool is_an_array_index(JS::PropertyKey const& property_name)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// 8. Return true.
|
// 8. Return true.
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue