Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 60d878c

Browse files
author
Terrence Cole
committed
Bug 1246293 - Fix a typo in DefineSelfHostedProperty; r=till
1 parent 4cc8e3d commit 60d878c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

js/src/jsapi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3062,7 +3062,7 @@ DefineSelfHostedProperty(JSContext* cx, HandleObject obj, HandleId id,
30623062
return false;
30633063
}
30643064
MOZ_ASSERT(setterValue.isObject() && setterValue.toObject().is<JSFunction>());
3065-
setterFunc = &getterValue.toObject().as<JSFunction>();
3065+
setterFunc = &setterValue.toObject().as<JSFunction>();
30663066
}
30673067
JSNative setterOp = JS_DATA_TO_FUNC_PTR(JSNative, setterFunc.get());
30683068

0 commit comments

Comments
 (0)