Bug Tracker

Ticket #10319 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

jquery-1.6.4.min.js

Reported by: anonymous Owned by:
Priority: low Milestone: None
Component: build Version: 1.6.4
Keywords: Cc:
Blocking: Blocked by:

Description

I think something is wrong in jquery-1.6.4.min.js

My Client [on his old iPad] has a syntax error in jquery-1.6.4.min.js on line 3; Basically impossible to find "the error".

When i replace the library with the "dev version" to debug, there are no errors on his iPad.

No errors either when the dev version gets "packed".

Might be related to "[bug #10288]" ? (NB: my jQuery file was encoded in ANSI, now encoded in UTF-8 without BOM, fails in both encodings)

Change History

comment:1 Changed 3 years ago by timmywil

  • Priority changed from undecided to low
  • Resolution set to invalid
  • Status changed from new to closed
  • Component changed from unfiled to build

This doesn't give us much to go on. If you discover the root of the problem, please let us know.

comment:2 Changed 3 years ago by anonymous

I noticed this as well in Eclipse. The problems listed are:

Syntax error, insert ")" to complete Arguments line 1 Syntax error, insert "}" to complete ObjectLiteral line 1

Error marker at char 16185 (the second curly brace in "))}}var")

Syntax error on token "Invalid Regular Expression Options", no accurate correction available line 4

Error marker at char 8274

comment:3 Changed 3 years ago by anonymous

Instead of 8274, it is actually marking 8265 through 8273. The dev version has essentially the same code and parses without errors. It looks like the parser is considering the /,... as a continuation of the expression and may just be a parser bug in both cases. Adding newlines after the first comma makes the error move to the next expression and adding a second removes the error completely. It doesn't seem to bother Firefox 6.0.2, but other parsers may be sensitive to this as well and it may deserve further investigation.

Note: See TracTickets for help on using tickets.