summaryrefslogtreecommitdiffstats
path: root/js/src/jsobj.cpp
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2017-08-24 10:34:22 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-03-12 10:12:53 +0100
commitc43c8f17629f2dde26f91d69f241fa7bd2165dab (patch)
tree864ca7027308ba80a30f46e085f7f1f26f51cb3f /js/src/jsobj.cpp
parentea44e60b7ed5f674b6de65fad669ac43a45438cc (diff)
downloadUXP-c43c8f17629f2dde26f91d69f241fa7bd2165dab.tar
UXP-c43c8f17629f2dde26f91d69f241fa7bd2165dab.tar.gz
UXP-c43c8f17629f2dde26f91d69f241fa7bd2165dab.tar.lz
UXP-c43c8f17629f2dde26f91d69f241fa7bd2165dab.tar.xz
UXP-c43c8f17629f2dde26f91d69f241fa7bd2165dab.zip
JS - Object - "TypeError: setting a property that has only a getter" without mentioning file and property name
Diffstat (limited to 'js/src/jsobj.cpp')
-rw-r--r--js/src/jsobj.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/js/src/jsobj.cpp b/js/src/jsobj.cpp
index a39a4b0a0..33feb0a54 100644
--- a/js/src/jsobj.cpp
+++ b/js/src/jsobj.cpp
@@ -3298,18 +3298,6 @@ GetObjectSlotNameFunctor::operator()(JS::CallbackTracer* trc, char* buf, size_t
}
}
-bool
-js::ReportGetterOnlyAssignment(JSContext* cx, bool strict)
-{
- return JS_ReportErrorFlagsAndNumberASCII(cx,
- strict
- ? JSREPORT_ERROR
- : JSREPORT_WARNING | JSREPORT_STRICT,
- GetErrorMessage, nullptr,
- JSMSG_GETTER_ONLY);
-}
-
-
/*** Debugging routines **************************************************************************/
#ifdef DEBUG