summaryrefslogtreecommitdiffstats
path: root/dom/bindings/BindingUtils.cpp
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-06-08 17:32:46 -0400
committerGaming4JC <g4jc@hyperbola.info>2019-07-18 22:38:20 -0400
commit0bc46526909e579acf7f7dc5c59668fd79662437 (patch)
treeb8ef0dd37cc02cafdf4e6c31e33b22207d28a323 /dom/bindings/BindingUtils.cpp
parentcefee262b7059d035667b148d56ebc7af5120d37 (diff)
downloadUXP-0bc46526909e579acf7f7dc5c59668fd79662437.tar
UXP-0bc46526909e579acf7f7dc5c59668fd79662437.tar.gz
UXP-0bc46526909e579acf7f7dc5c59668fd79662437.tar.lz
UXP-0bc46526909e579acf7f7dc5c59668fd79662437.tar.xz
UXP-0bc46526909e579acf7f7dc5c59668fd79662437.zip
1333045 - Update Location object properties to current spec.
Specifically, three changes: 1) valueOf should be non-enumerable. 2) valueOf should be === to Object.prototype.valueOf. 3) There should be no toJSON.
Diffstat (limited to 'dom/bindings/BindingUtils.cpp')
-rw-r--r--dom/bindings/BindingUtils.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/dom/bindings/BindingUtils.cpp b/dom/bindings/BindingUtils.cpp
index 8d2bdaac6..a26fc4422 100644
--- a/dom/bindings/BindingUtils.cpp
+++ b/dom/bindings/BindingUtils.cpp
@@ -1184,14 +1184,6 @@ GetInterfaceImpl(JSContext* aCx, nsIInterfaceRequestor* aRequestor,
}
bool
-UnforgeableValueOf(JSContext* cx, unsigned argc, JS::Value* vp)
-{
- JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
- args.rval().set(args.thisv());
- return true;
-}
-
-bool
ThrowingConstructor(JSContext* cx, unsigned argc, JS::Value* vp)
{
return ThrowErrorMessage(cx, MSG_ILLEGAL_CONSTRUCTOR);