[gjs/wip/ptomato/mozjs31prep: 1/15] byteArray: Remove further usage of TinyId
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/wip/ptomato/mozjs31prep: 1/15] byteArray: Remove further usage of TinyId
- Date: Mon, 19 Sep 2016 04:15:08 +0000 (UTC)
commit 00223762acc76da07a9e00412cef6222a02105fe
Author: Philip Chimento <philip chimento gmail com>
Date: Sun Sep 18 20:43:04 2016 -0700
byteArray: Remove further usage of TinyId
This was probably not doing anything in the first place, but will be
ignored starting with mozjs31.
https://bugzilla.gnome.org/show_bug.cgi?id=742249
gjs/byteArray.cpp | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/gjs/byteArray.cpp b/gjs/byteArray.cpp
index b543fa5..fda8023 100644
--- a/gjs/byteArray.cpp
+++ b/gjs/byteArray.cpp
@@ -877,15 +877,8 @@ gjs_byte_array_peek_data (JSContext *context,
}
}
-/* no idea what this is used for. examples in
- * spidermonkey use -1, -2, -3, etc. for tinyids.
- */
-enum ByteArrayTinyId {
- BYTE_ARRAY_TINY_ID_LENGTH = -1
-};
-
JSPropertySpec gjs_byte_array_proto_props[] = {
- { "length", BYTE_ARRAY_TINY_ID_LENGTH,
+ { "length", 0,
JSPROP_PERMANENT,
JSOP_WRAPPER ((JSPropertyOp) byte_array_length_getter),
JSOP_WRAPPER ((JSStrictPropertyOp) byte_array_length_setter),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]