File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -758,7 +758,7 @@ impl Chunk<'_> {
758758 return ChunkMode :: Binary ;
759759 }
760760 #[ cfg( feature = "luau" ) ]
761- if * source. first ( ) . unwrap_or ( & u8:: MAX ) < b'\n ' {
761+ if * source. first ( ) . unwrap_or ( & u8:: MAX ) < b'\t ' {
762762 return ChunkMode :: Binary ;
763763 }
764764 }
Original file line number Diff line number Diff line change @@ -132,9 +132,9 @@ fn test_exec() -> Result<()> {
132132fn test_eval ( ) -> Result < ( ) > {
133133 let lua = Lua :: new ( ) ;
134134
135- assert_eq ! ( lua. load( "1 + 1" ) . eval:: <i32 >( ) ?, 2 ) ;
135+ assert_eq ! ( lua. load( "\t 1 + 1" ) . eval:: <i32 >( ) ?, 2 ) ;
136136 assert_eq ! ( lua. load( "false == false" ) . eval:: <bool >( ) ?, true ) ;
137- assert_eq ! ( lua. load( "return 1 + 2" ) . eval:: <i32 >( ) ?, 3 ) ;
137+ assert_eq ! ( lua. load( "\n return 1 + 2" ) . eval:: <i32 >( ) ?, 3 ) ;
138138 match lua. load ( "if true then" ) . eval :: < ( ) > ( ) {
139139 Err ( Error :: SyntaxError {
140140 incomplete_input : true ,
You can’t perform that action at this time.
0 commit comments