servo / rust-mozjs

DEPRECATED - moved to servo/mozjs instead.
Mozilla Public License 2.0
293 stars 122 forks source link

Docs on doc.servo.org are outdated #539

Closed Redfire75369 closed 3 years ago

Redfire75369 commented 3 years ago

https://doc.servo.org/mozjs/jsapi/fn.ModuleEvaluate.html shows only 2 parameters. However, according to cargo doc and the rust compiler, it has 3 parameters.

New Method Signature:

pub unsafe extern "C" fn ModuleEvaluate(cx: *mut JSContext, moduleRecord: Handle<*mut JSObject>, rval: MutableHandle<Value>) -> bool
sagudev commented 3 years ago

This is due to https://github.com/servo/rust-mozjs/pull/535 which was merged today, but I do not know how docs are updated on site.

jdm commented 3 years ago

The docs are updated every time a PR is merged to servo/servo. No way to avoid this, unfortunately.