[gjs] byteArray: Remove further usage of TinyId



commit 9c831a87cbd1531177771df3c417f06d683f7568
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]