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

Bind js::UncheckedUnwrap #232

Merged
merged 2 commits into from Jan 12, 2016
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Prev

Bind js::UncheckedUnwrap

  • Loading branch information
nox committed Jan 12, 2016
commit 36732a96da7ccd469e47a6332b0ec1b9b2c976fe
@@ -228,6 +228,7 @@ extern "C" {
pub fn ReportError(aCx: *mut JSContext, aError: *const i8);
pub fn IsWrapper(obj: *mut JSObject) -> bool;
pub fn UnwrapObject(obj: *mut JSObject, stopAtOuter: u8) -> *mut JSObject;
pub fn UncheckedUnwrapObject(obj: *mut JSObject, stopAtOuter: u8) -> *mut JSObject;
pub fn AppendToAutoIdVector(v: *mut AutoIdVector, id: jsid) -> bool;
pub fn CreateAutoObjectVector(aCx: *mut JSContext)
-> *mut AutoObjectVector;
@@ -638,6 +638,12 @@ UnwrapObject(JSObject* obj, bool stopAtOuter)
return js::CheckedUnwrap(obj, stopAtOuter);
}

JSObject*
UncheckedUnwrapObject(JSObject* obj, bool stopAtOuter)
{
return js::UncheckedUnwrap(obj, stopAtOuter);
}

bool
AppendToAutoIdVector(JS::AutoIdVector* v, jsid id)
{
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.