From e0d29b8c8f56400816bba6ea6387b0220eb07b14 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Wed, 27 Aug 2014 11:06:10 +0200 Subject: [PATCH] Add JS_WrapPropertyDescriptor. --- jsfriendapi.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jsfriendapi.rs b/jsfriendapi.rs index eeb9b9f5b..fb6778b94 100644 --- a/jsfriendapi.rs +++ b/jsfriendapi.rs @@ -2,7 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ -use jsapi::{JSContext, JSObject}; +use jsapi::{JSContext, JSObject, JSPropertyDescriptor, JSBool}; pub type JSJitPropertyOp = *const u8; @@ -17,6 +17,8 @@ pub struct JSJitInfo { extern { pub fn JS_ObjectToOuterObject(cx: *mut JSContext, obj: *mut JSObject) -> *mut JSObject; +pub fn JS_WrapPropertyDescriptor(cx: *mut JSContext, + desc: *mut JSPropertyDescriptor) -> JSBool; } //pub type JSJitInfo = JSJitInfo_struct;