Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable all typed array function #135

Merged
merged 1 commit into from Feb 19, 2015
Merged

Conversation

@yodalee
Copy link
Contributor

yodalee commented Feb 19, 2015

Follow PR #128, enable all typed array function

@@ -25,13 +25,38 @@ pub fn JS_WrapPropertyDescriptor(cx: *mut JSContext,

pub mod bindgen {
use jsapi::{JSContext, JSObject, JSClass, JSRuntime};
use libc::{uintptr_t, uint8_t, uint32_t};
use libc::{uintptr_t, int8_t, uint8_t, int16_t, uint16_6, int32_t, uint32_t, float32_t, float64_t};

This comment has been minimized.

@Ms2ger

Ms2ger Feb 19, 2015

Collaborator

uint16_6 should be uint16_t; float32_t and float64_t should be c_float and c_double, respectively.


extern {
pub fn JS_NewObjectWithUniqueType(cx: *mut JSContext, clasp: *const JSClass,
proto: *const JSObject, parent: *const JSObject) -> *mut JSObject;
pub fn JS_GetAddressableObject(rt: *mut JSRuntime, candidateObj: uintptr_t) -> *mut JSObject;

pub fn JS_NewInt8Array (cx: *mut JSContext, nelements: uint32_t) -> *mut JSObject;

This comment has been minimized.

@Ms2ger

Ms2ger Feb 19, 2015

Collaborator

No need for the strange spacing

@yodalee yodalee force-pushed the yodalee:enable-all-typedarray branch from 11ac1a1 to d1122f6 Feb 19, 2015
@yodalee
Copy link
Contributor Author

yodalee commented Feb 19, 2015

Kill

Ms2ger added a commit that referenced this pull request Feb 19, 2015
Enable all typed array functions; r=Ms2ger
@Ms2ger Ms2ger merged commit f1c0726 into servo:master Feb 19, 2015
@yodalee yodalee deleted the yodalee:enable-all-typedarray branch Feb 20, 2015
mmatyas pushed a commit to mmatyas/rust-mozjs that referenced this pull request Jul 30, 2015
Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev; r=Ms2ger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.