mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Auto merge of #13005 - cjm00:starting-line-fix, r=Wafflespeanut
Changed first line of script to line 1 instead of line 0 Changed starting line of script to line 1 instead of line 0 --- - [ ] `./mach build -d` fails, but it fails on master on my system too due to some sort of problem with cygwin - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #12996 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13005) <!-- Reviewable:end -->
This commit is contained in:
commit
a20d710261
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