From 67beff558df773e766a7b3f2d7e1e24c7ea2846d Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Tue, 24 Jun 2014 16:11:52 +0200 Subject: [PATCH] Add definitions for the JSREPORT_* constants. --- jsapi.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/jsapi.rs b/jsapi.rs index d2a49be38..485753625 100644 --- a/jsapi.rs +++ b/jsapi.rs @@ -402,6 +402,13 @@ pub struct JSErrorReport { pub exnType: int16_t, pub column: c_uint, } + +pub static JSREPORT_ERROR: c_uint = 0x0; +pub static JSREPORT_WARNING: c_uint = 0x1; +pub static JSREPORT_EXCEPTION: c_uint = 0x2; +pub static JSREPORT_STRICT: c_uint = 0x4; +pub static JSREPORT_STRICT_MODE_ERROR: c_uint = 0x8; + extern "C" { pub fn JS_CreateHandleObject(cx: *mut JSContext, obj: *mut JSObject, phandle: *mut JSHandleObject) -> JSBool;