Skip to content
This repository has been archived by the owner on Nov 12, 2022. It is now read-only.

Commit

Permalink
Bind SYMBOL_TO_JSID
Browse files Browse the repository at this point in the history
  • Loading branch information
nox committed Jun 5, 2016
1 parent c6f6817 commit f6a1d92
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/glue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ extern "C" {
pub fn int_to_jsid(i: i32) -> jsid;
pub fn RUST_JSID_IS_STRING(id: HandleId) -> bool;
pub fn RUST_JSID_TO_STRING(id: HandleId) -> *mut JSString;
pub fn RUST_SYMBOL_TO_JSID(sym: *mut Symbol) -> jsid;
pub fn RUST_SET_JITINFO(func: *mut JSFunction, info: *const JSJitInfo);
pub fn RUST_INTERNED_STRING_TO_JSID(cx: *mut JSContext,
str: *mut JSString) -> jsid;
Expand Down
6 changes: 6 additions & 0 deletions src/jsglue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,12 @@ RUST_JSID_TO_STRING(JS::HandleId id)
return JSID_TO_STRING(id);
}

jsid
RUST_SYMBOL_TO_JSID(JS::Symbol* sym)
{
return SYMBOL_TO_JSID(sym);
}

void
RUST_SET_JITINFO(JSFunction* func, const JSJitInfo* info) {
SET_JITINFO(func, info);
Expand Down

0 comments on commit f6a1d92

Please sign in to comment.