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

Commit 74d767a

Browse files
committed
Update mozjs
1 parent 0d03361 commit 74d767a

File tree

5 files changed

+59
-45
lines changed

5 files changed

+59
-45
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ lazy_static = "1"
5858
libc = "0.2"
5959
log = "0.4"
6060
num-traits = "0.2"
61-
mozjs_sys = { git = "https://github.com/servo/mozjs", rev = "c6c7b5319975a8f0465ce8c17329e74be4cb80b1" }
61+
mozjs_sys = { git = "https://github.com/sagudev/mozjs" }

src/generate_wrappers.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ grep_heur() {
44
grep -v "link_name" "$1" | \
55
grep -v '"\]' | \
66
grep -F -v '/\*\*' | \
7-
gsed -z 's/,\n */, /g' | \
8-
gsed -z 's/:\n */: /g' | \
9-
gsed -z 's/\n *->/ ->/g' | \
7+
sed -z 's/,\n */, /g' | \
8+
sed -z 's/:\n */: /g' | \
9+
sed -z 's/\n *->/ ->/g' | \
1010
grep -v '^\}$' | \
1111
sed 's/^ *pub/pub/' | \
12-
gsed -z 's/\;\n/\n/g' | \
12+
sed -z 's/\;\n/\n/g' | \
1313
grep 'pub fn' | \
1414
grep Handle | \
1515
grep -v roxyHandler | \

src/glue_wrappers.in

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ wrap!(glue: pub fn InvokeHasOwn(handler: *const ::libc::c_void, cx: *mut JSConte
33
wrap!(glue: pub fn CallJitGetterOp(info: *const JSJitInfo, cx: *mut JSContext, thisObj: HandleObject, specializedThis: *mut ::libc::c_void, argc: u32, vp: *mut Value) -> bool);
44
wrap!(glue: pub fn CallJitSetterOp(info: *const JSJitInfo, cx: *mut JSContext, thisObj: HandleObject, specializedThis: *mut ::libc::c_void, argc: u32, vp: *mut Value) -> bool);
55
wrap!(glue: pub fn CallJitMethodOp(info: *const JSJitInfo, cx: *mut JSContext, thisObj: HandleObject, specializedThis: *mut ::libc::c_void, argc: u32, vp: *mut Value) -> bool);
6-
wrap!(glue: pub fn NewProxyObject(aCx: *mut JSContext, aHandler: *const ::libc::c_void, aPriv: HandleValue, proto: *mut JSObject, class: *const JSClass) -> *mut JSObject);
6+
wrap!(glue: pub fn NewProxyObject(aCx: *mut JSContext, aHandler: *const ::libc::c_void, aPriv: HandleValue, proto: *mut JSObject, classp: *const JSClass) -> *mut JSObject);
77
wrap!(glue: pub fn WrapperNew(aCx: *mut JSContext, aObj: HandleObject, aHandler: *const ::libc::c_void, aClass: *const JSClass, aSingleton: bool) -> *mut JSObject);
88
wrap!(glue: pub fn NewWindowProxy(aCx: *mut JSContext, aObj: HandleObject, aHandler: *const ::libc::c_void) -> *mut JSObject);
99
wrap!(glue: pub fn RUST_JSID_IS_INT(id: HandleId) -> bool);
@@ -14,7 +14,6 @@ wrap!(glue: pub fn RUST_JSID_TO_STRING(id: HandleId) -> *mut JSString);
1414
wrap!(glue: pub fn RUST_SYMBOL_TO_JSID(sym: *mut Symbol, id: MutableHandleId));
1515
wrap!(glue: pub fn RUST_JSID_IS_VOID(id: HandleId) -> bool);
1616
wrap!(glue: pub fn RUST_INTERNED_STRING_TO_JSID(cx: *mut JSContext, str: *mut JSString, id: MutableHandleId));
17-
wrap!(glue: pub fn GetIdVectorAddress(v: *mut PersistentRootedIdVector) -> *mut ::libc::c_void);
1817
wrap!(glue: pub fn AppendToIdVector(v: MutableHandleIdVector, id: HandleId) -> bool);
1918
wrap!(glue: pub fn JS_GetPromiseResult (promise: HandleObject, dest: MutableHandleValue));
2019
wrap!(glue: pub fn JS_GetScriptPrivate(script: *mut JSScript, dest: MutableHandleValue));

0 commit comments

Comments
 (0)