Closed Bug 291591 Opened 20 years ago Closed 19 years ago

Rhino has differing behaviour to spidermonkey, and does not conform to ECMA262

Categories

(Rhino Graveyard :: Core, defect)

x86
Windows 98
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: simon.place, Assigned: igor)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8b2) Gecko/20050417 Firefox/1.0+
Build Identifier: 

line terminators included in string incorrectly

Reproducible: Always

Steps to Reproduce:
1.see results for interactive session log.
2.
3.

Actual Results:  
Rhino 1.6 release 1 2004 11 30
js> a="a\
a"
a
a
js> a
a
a
js> a="a
js: "<stdin>", line 4: unterminated string literal
js: a="a
js: ...^
js: "<stdin>", line 4: syntax error
js: a="a
js: ...^
js: "<stdin>", line 4: Compilation produced 2 syntax errors.
js> a[2]
a
js> a[1]


js> a.charCodeAt(1)
10
js>


Expected Results:  
line terminator should not of been included in the string.
I committed the fix
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: