aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/bindings/proxyhandler.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2013-08-28 19:41:08 -0400
committerJosh Matthews <josh@joshmatthews.net>2013-08-28 19:41:08 -0400
commit65c993e7e6c7e744a08fcedd63a64d0b43505c1d (patch)
tree73ea1f1863437448145fe7518f2fc8ad86584df2 /src/components/script/dom/bindings/proxyhandler.rs
parente26a541eb2bc772c68e2a2adae2d7622823831fd (diff)
downloadservo-65c993e7e6c7e744a08fcedd63a64d0b43505c1d.tar.gz
servo-65c993e7e6c7e744a08fcedd63a64d0b43505c1d.zip
Generate bindings for HTMLSelectElement.
Diffstat (limited to 'src/components/script/dom/bindings/proxyhandler.rs')
-rw-r--r--src/components/script/dom/bindings/proxyhandler.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/components/script/dom/bindings/proxyhandler.rs b/src/components/script/dom/bindings/proxyhandler.rs
index 3128c27d727..b31f16da7f0 100644
--- a/src/components/script/dom/bindings/proxyhandler.rs
+++ b/src/components/script/dom/bindings/proxyhandler.rs
@@ -44,8 +44,8 @@ pub extern fn getPropertyDescriptor(cx: *JSContext, proxy: *JSObject, id: jsid,
}
}
-pub extern fn defineProperty(cx: *JSContext, proxy: *JSObject, id: jsid,
- desc: *JSPropertyDescriptor) -> JSBool {
+pub fn defineProperty_(cx: *JSContext, proxy: *JSObject, id: jsid,
+ desc: *JSPropertyDescriptor) -> JSBool {
unsafe {
if ((*desc).attrs & JSPROP_GETTER) != 0 && (*desc).setter == JS_StrictPropertyStub {
/*return JS_ReportErrorFlagsAndNumber(cx,
@@ -66,6 +66,11 @@ pub extern fn defineProperty(cx: *JSContext, proxy: *JSObject, id: jsid,
}
}
+pub extern fn defineProperty(cx: *JSContext, proxy: *JSObject, id: jsid,
+ desc: *JSPropertyDescriptor) -> JSBool {
+ defineProperty_(cx, proxy, id, desc)
+}
+
pub fn _obj_toString(cx: *JSContext, className: *libc::c_char) -> *JSString {
unsafe {
let name = str::raw::from_c_str(className);