| 263 | } |
| 264 | |
| 265 | bool ObjectInstance::add_property_impl(JSContext* cx, JS::HandleObject obj, |
| 266 | JS::HandleId id, JS::HandleValue) { |
| 267 | debug_jsprop("Add property hook", id, obj); |
| 268 | |
| 269 | if (is_custom_js_class()) |
| 270 | return true; |
| 271 | |
| 272 | ensure_uses_toggle_ref(cx); |
| 273 | return true; |
| 274 | } |
| 275 | |
| 276 | template <typename TAG> |
| 277 | bool ObjectBase::prop_getter(JSContext* cx, unsigned argc, JS::Value* vp) { |