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

Add the JSOPTION_AUTOJSAPI_OWNS_ERROR_REPORTING constant. #127

Merged
merged 2 commits into from Dec 28, 2014
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -46,6 +46,7 @@ pub const JSOPTION_STRICT: uint32_t = 0b00000000000001u32;
pub const JSOPTION_WERROR: uint32_t = 0b00000000000010u32;
pub const JSOPTION_VAROBJFIX: uint32_t = 0b00000000000100u32;
pub const JSOPTION_DONT_REPORT_UNCAUGHT: uint32_t = (1u32 << 8) as u32;
pub const JSOPTION_AUTOJSAPI_OWNS_ERROR_REPORTING: uint32_t = (1u32 << 10) as u32;
pub const JSOPTION_METHODJIT: uint32_t = (1u32 << 14) as u32;
pub const JSOPTION_TYPE_INFERENCE: uint32_t = (1u32 << 18) as u32;

@@ -91,7 +91,9 @@ pub fn new_context(ptr: *mut JSContext, rt: rt) -> rc::Rc<Cx> {
impl Cx {
pub fn set_default_options_and_version(&self) {
self.set_options(JSOPTION_VAROBJFIX | JSOPTION_METHODJIT |
JSOPTION_TYPE_INFERENCE);
JSOPTION_TYPE_INFERENCE |
JSOPTION_DONT_REPORT_UNCAUGHT |
JSOPTION_AUTOJSAPI_OWNS_ERROR_REPORTING);
self.set_version(JSVERSION_LATEST);
}

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.