mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Changed first line of script to line 1 instead of line 0
This commit is contained in:
parent
d5913035ec
commit
349d0e5108
1 changed files with 1 additions and 1 deletions
|
@ -946,7 +946,7 @@ impl<'a, T: Reflectable> ScriptHelpers for &'a T {
|
|||
let filename = CString::new(filename).unwrap();
|
||||
|
||||
let _ac = JSAutoCompartment::new(cx, globalhandle.get());
|
||||
let options = CompileOptionsWrapper::new(cx, filename.as_ptr(), 0);
|
||||
let options = CompileOptionsWrapper::new(cx, filename.as_ptr(), 1);
|
||||
unsafe {
|
||||
if !Evaluate2(cx, options.ptr, code.as_ptr(),
|
||||
code.len() as libc::size_t,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue