Closed
Bug 686799
Opened 14 years ago
Closed 14 years ago
Object.freeze() on String-Object throws java.lang.IllegalStateException
Categories
(Rhino Graveyard :: Core, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: anba, Unassigned)
Details
Attachments
(1 file)
|
766 bytes,
text/plain
|
Details |
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20100101 Firefox/6.0.2
Build ID: 20110902133214
Steps to reproduce:
Called Object.freeze() on a String-Object.
See test262 for the original test case:
test/suite/ietestcenter/chapter15/15.2/15.2.3/15.2.3.9/15.2.3.9-2-a-12.js
Actual results:
IdScriptableObject.setInstanceIdValue() throws a "java.lang.IllegalStateException: 1" exception.
Expected results:
Object.freeze() should not throw any exceptions per ES5 spec.
| Reporter | ||
Comment 1•14 years ago
|
||
The IllegalStateException is no longer reproducible in rhino_1_8 (haven't tested master yet), so this bug report can be closed.
The original test262 test case ("15.2.3.9-2-a-12.js") will still fail, but that's another issue:
`Object.getOwnPropertyDescriptor(new String('a'), '1')` currently returns `undefined` instead of `{configurable: false, enumerable: true, writable: false, value: 'a'}`.
=> Should I create a new bug report for that issue?
| Reporter | ||
Comment 2•14 years ago
|
||
IllegalStateException is no longer reproducible (see above), therefore resolving as WFM.
Created bug 726297 to track the [[DefineOwnProperty]] changes required for NativeString.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•