Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upDe @mut the bindings. #49
Conversation
This comment has been minimized.
This comment has been minimized.
|
This API seems odd. Why limit it to statics? |
This comment has been minimized.
This comment has been minimized.
|
The string needs to stay alive forever, basically. |
This comment has been minimized.
This comment has been minimized.
|
It used to be owned. If you transmute a ~str to something raw it won't be finalized unless you transmute it back and let it drop. Also, now that I'm noticing, why is this all i8 instead of u8? :) |
This comment has been minimized.
This comment has been minimized.
|
It used to be owned when passed in, but then we stored it forever inside the name pool. I hate everything about that and it was awful; all serious JSAPI work I've done and seen uses static classes and strings everywhere. The u8/i8 thing is the libc::c_char is defined as *i8 for some reason. |
This comment has been minimized.
This comment has been minimized.
|
If normal JSAPI code uses static strings, that sounds fine then. Carry on. |
This comment has been minimized.
This comment has been minimized.
|
Same 'static thing here. |
This comment has been minimized.
This comment has been minimized.
|
I don't actually know what the restrictions for the lifetime of the property name are for JS_DefineProperty. I'll take a look. |
This comment has been minimized.
This comment has been minimized.
|
I don't like the statics. It seems pretty limiting, and it looks like there is some constraint I don't understand or this is just trying to save a clone or work around doing a transmute? Looks fine otherwise. |
Requires servo/rust-mozjs#49.
|
Durr, awkward. This didn't actually merge before the other, but worked because it's a branch of the official repo. |
Requires servo/rust-mozjs#49.
Requires servo/rust-mozjs#49.
Support StrokeStyle
Backport memory reporting changes from bug 1181452 The code is being backported from https://bugzilla.mozilla.org/show_bug.cgi?id=1181452. This change shouldn't land until the one in the Bugzilla bug has landed.
…metajack Requires servo/rust-mozjs#49. Source-Repo: https://github.com/servo/servo Source-Revision: ea29e3a001fb70b5e94af7a676345b4046771315 UltraBlame original commit: a989b2a4515b4ccc99680f910f27df7a2163f8db
…metajack Requires servo/rust-mozjs#49. Source-Repo: https://github.com/servo/servo Source-Revision: ea29e3a001fb70b5e94af7a676345b4046771315 UltraBlame original commit: a989b2a4515b4ccc99680f910f27df7a2163f8db
…metajack Requires servo/rust-mozjs#49. Source-Repo: https://github.com/servo/servo Source-Revision: ea29e3a001fb70b5e94af7a676345b4046771315 UltraBlame original commit: a989b2a4515b4ccc99680f910f27df7a2163f8db
jdm commentedFeb 25, 2014
No description provided.