Closed Bug 439647 Opened 17 years ago Closed 17 years ago

ByteArray not write indexable

Categories

(Tamarin Graveyard :: Virtual Machine, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

VERIFIED WORKSFORME

People

(Reporter: zell, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0 Build Identifier: hg rev 583 Running this: var arr :ByteArray = new ByteArray(); arr[0] = 1; yields a kWriteSealedError, "Cannot create property 0 on arr". Reproducible: Always Steps to Reproduce: 1. Compile the tiny script above. 2. $AVMSHELL -Dinterp script.abc 3. fail to profit Adding this to ByteArrayGlue.cpp seems to fix the problem, but I'm too green to know if it's the proper approach: void ByteArrayObject::setMultinameProperty(Multiname* name, Atom value) { if (isValidDynamicName(name)) { setStringProperty(name->getName(), value); } else { ScriptObject::setMultinameProperty(name, value); } } i.e. skip the 'is dynamic' check.
Seems like a good idea.
Severity: normal → enhancement
This appears to be possible in the latest TC. Following the above steps does run properly.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Flags: flashplayer-triage+
Resolution: --- → WORKSFORME
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.