un-closured curl.js 0.6.3 through 0.6.5 don't get along with Safari 6

36 views
Skip to first unread message

unscriptable

unread,
Jul 23, 2012, 12:52:20 PM7/23/12
to
Tiago discovered that un-closured curl.js is failing in Safari 6, which is due to be released imminently.  It seems recent release candidates of Safari 6 fail loudly when attempting to assign a property to a string: `myString.foo = true;`.  Other browsers fail silently.  (There is a line in the config-parsing routine that handles strings and objects generically and so may assign a property to a string.)

Tiago offered a pull request, but we added a temporary fix that is even simpler: remove "use strict", which was added in 0.6.3.  Version 0.6.6 no longer includes "use strict".

**If you are using a closure-compiled version of curl.js, your code is not affected.  All files in the `dist/` folder are unaffected.**

**If you are using packages instead of paths, your code is also unaffected.  This bug only manifests itself when using paths.**

-- J

unscriptable

unread,
Jul 23, 2012, 12:40:44 PM7/23/12
to cuj...@googlegroups.com
The good news is that Safari 6 finally fixes broken link.onload and link.onerror event handlers! (new css! plugin that uses those is "in the works" already)

unscriptable

unread,
Jul 25, 2012, 10:18:08 AM7/25/12
to cuj...@googlegroups.com
Just a reminder.  Safari 6 is out today.  If you're using un-compiled curl.js 0.6.3 through 0.6.5, please update to 0.6.6 ASAP.  :)
Reply all
Reply to author
Forward
0 new messages