Ticket #355 (new defect)

Opened 10 months ago

Last modified 3 days ago

ES3: Unary operations on numeric strings not functioning

Reported by: cpeyer Assigned to: anonymous
Type: defect Priority: major
Milestone: Component: RefImpl
Version: 3.1 Keywords:
Cc:

Description

MYVAR='0Xf';MYVAR++; // = 0 expected: 15
MYVAR=''; MYVAR++; // = NaN expected: 0
MYVAR=new String('12345');MYVAR++; // = 0 expected: 12345
MYVAR=new String('12345');--MYVAR; // = -1 expected: 12344
// also doesn't return NaN when it should
MYVAR=new String('string');MYVAR--;MYVAR; // = -1 expected: NaN

ES3 Tests:
tests/spidermonkey/ecma/Expressions/11.3.1, 11.3.2, 11.4.x

Attachments

Change History

Changed 3 days ago by David-Sarah Hopwood

  • version changed from 4 to 3.1

Affects conformance of RefImpl? to ES3.1.

Note: See TracTickets for help on using tickets.