Bug 34678 - No support for JS heredoc strings
Summary: No support for JS heredoc strings
Status: RESOLVED DUPLICATE of bug 5381
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P2 Normal
Assignee: Nobody
URL: http://temple.24bps.com/public/jsraw....
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-06 03:13 PST by Andy G
Modified: 2010-02-06 19:44 PST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andy G 2010-02-06 03:13:21 PST
I haven't found support for multiline JavaScript "raw" heredoc-style strings in any browser that is using WebKit.

The supplied URL shows this mentioned JavaScript multiline string code that I have trouble finding a real name for, as it's hardly ever documented. But this heredoc-like string in JavaScript works in the Gecko engine, where it gives an alert. If you visit the supplied URL in any WebKit browser, no alert is shown and instead the engine reports "Parse error".

Again, steps to reproduce: Visit supplied URL, note that there's no alert window, note that there's a parse error. Does this in WebKit nightly build, but also Safari (on any OS) and Chrome. If you visit the page in Firefox or other Gecko browser, there's an alert and it works fine.
Comment 1 Mark Rowe (bdash) 2010-02-06 19:44:28 PST
That’s not a “heredoc string”, but an XML literal from E4X (ECMAScript for XML).

*** This bug has been marked as a duplicate of bug 5381 ***