mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-30 04:17:31 +09:00
JS - Object - "TypeError: setting a property that has only a getter" without mentioning file and property name
This commit is contained in:
parent
b9e802f497
commit
5149d56104
6 changed files with 2 additions and 32 deletions
|
|
@ -968,11 +968,4 @@ IsDebuggerSandbox(JSObject* object)
|
|||
SimpleGlobalObject::GlobalType::WorkerDebuggerSandbox;
|
||||
}
|
||||
|
||||
bool
|
||||
GetterOnlyJSNative(JSContext* aCx, unsigned aArgc, JS::Value* aVp)
|
||||
{
|
||||
JS_ReportErrorNumberASCII(aCx, js::GetErrorMessage, nullptr, JSMSG_GETTER_ONLY);
|
||||
return false;
|
||||
}
|
||||
|
||||
END_WORKERS_NAMESPACE
|
||||
|
|
|
|||
|
|
@ -362,14 +362,6 @@ IsDebuggerGlobal(JSObject* global);
|
|||
bool
|
||||
IsDebuggerSandbox(JSObject* object);
|
||||
|
||||
// Throws the JSMSG_GETTER_ONLY exception. This shouldn't be used going
|
||||
// forward -- getter-only properties should just use JS_PSG for the setter
|
||||
// (implying no setter at all), which will not throw when set in non-strict
|
||||
// code but will in strict code. Old code should use this only for temporary
|
||||
// compatibility reasons.
|
||||
extern bool
|
||||
GetterOnlyJSNative(JSContext* aCx, unsigned aArgc, JS::Value* aVp);
|
||||
|
||||
END_WORKERS_NAMESPACE
|
||||
|
||||
#endif // mozilla_dom_workers_workers_h__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue