@import "json2.js" breaks
Reported by Martin Häcker | April 27th, 2009 @ 01:22 AM
Hi there,
I am trying to use Douglas Crockfords javascript json implementation at http://www.JSON.org/json2.js
(I am trying to reproduce another bug in the json component of cappuccino)
The problem is, that when @import this file with @import "json2.js" my unittests fail with this error message
json2.js Expected ']' - Unterminated message send or array. OBJJ EXCEPTION: Expected ']' - Unterminated message send or array.
Name: OBJJParseException
Message: undefined
File: undefined
Line: undefined
I haven't yet reduced this to why it fails - but I suspect some of the more complex Regexes in there might be the source of the problem.
Please fix it!
Regards, Martin
Comments and changes to this ticket
-
Martin Häcker April 27th, 2009 @ 01:41 AM
- Tag changed from foundation, import, interaction, javascript to foundation, import, interaction, javascript, parser
I'd like to add that just copying the source in a obj-j file also breaks the interpreter - it seems the parser somehow gets confused on the correct javascript code in that file.
-
ronin-756 (at lighthouseapp) April 27th, 2009 @ 11:18 PM
- Tag changed from foundation, import, interaction, javascript, parser to @to-acknowledge, foundation, import, interaction, javascript, parser
-
admin (at 280north) October 22nd, 2009 @ 07:21 AM
- State changed from new to resolved
(from [341eddb9f94ac33f5f33b1e70cbb959b133abf59]) Fixes a tab view bug with removing tabs. Closes #274.
Kudos go to jtietema for tracking down the bug.
http://github.com/280north/cappuccino/commit/341eddb9f94ac33f5f33b1...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
The Cappuccino Web Framework, including AppKit, Foundation, and Objective-J.
People watching this ticket
Referenced by
- 274 @import "json2.js" breaks (from [341eddb9f94ac33f5f33b1e70cbb959b133abf59]) Fixes a...