summaryrefslogtreecommitdiff
path: root/gjs/byteArray.cpp
diff options
context:
space:
mode:
authorPhilip Chimento <philip.chimento@gmail.com>2017-12-10 00:14:34 -0800
committerPhilip Chimento <philip.chimento@gmail.com>2018-07-28 22:15:51 -0400
commitcda7624f499f83d5187a42b2b22726a2f201431e (patch)
tree60f71804efac42f5455de07c22b0439526463cab /gjs/byteArray.cpp
parent1e1ef59377765b21cb2f413529a21bbf449a8728 (diff)
downloadgjs-cda7624f499f83d5187a42b2b22726a2f201431e.tar.gz
js: Replace JS_FS with JS_FN
The macro simply changed its name. See: #161
Diffstat (limited to 'gjs/byteArray.cpp')
-rw-r--r--gjs/byteArray.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/gjs/byteArray.cpp b/gjs/byteArray.cpp
index 930850fc..59f55dfc 100644
--- a/gjs/byteArray.cpp
+++ b/gjs/byteArray.cpp
@@ -809,19 +809,17 @@ static JSPropertySpec gjs_byte_array_proto_props[] = {
};
static JSFunctionSpec gjs_byte_array_proto_funcs[] = {
- JS_FS("toString", to_string_func, 0, 0),
- JS_FS("toGBytes", to_gbytes_func, 0, 0),
- JS_FS_END
-};
+ JS_FN("toString", to_string_func, 0, 0),
+ JS_FN("toGBytes", to_gbytes_func, 0, 0),
+ JS_FS_END};
static JSFunctionSpec *gjs_byte_array_static_funcs = nullptr;
static JSFunctionSpec gjs_byte_array_module_funcs[] = {
- JS_FS("fromString", from_string_func, 1, 0),
- JS_FS("fromArray", from_array_func, 1, 0),
- JS_FS("fromGBytes", from_gbytes_func, 1, 0),
- JS_FS_END
-};
+ JS_FN("fromString", from_string_func, 1, 0),
+ JS_FN("fromArray", from_array_func, 1, 0),
+ JS_FN("fromGBytes", from_gbytes_func, 1, 0),
+ JS_FS_END};
GJS_DEFINE_PROTO_FUNCS(byte_array)