Closed Bug 497371 Opened 15 years ago Closed 15 years ago

Error message for invalid vector class does not indicate what the problem is.

Categories

(Tamarin Graveyard :: Virtual Machine, defect, P4)

Tracking

(Not tracked)

VERIFIED WORKSFORME
flash10.1

People

(Reporter: cpeyer, Assigned: tharwood)

References

Details

      No description provided.
Flags: in-testsuite?
Flags: flashplayer-qrb?
Given the following as:

var s:String = 'asdf';
var v:Object = new Vector.<s>();

tamarin will throw a verifyerror:
VerifyError: Error #1107: The ABC data is corrupt, attempt to read out of bounds.
	at global$init()

This does not help the user know what the problem is.  A more specific error message would be much more informative.
Assignee: nobody → tharwood
Flags: flashplayer-qrb? → flashplayer-qrb+
Priority: -- → P4
Target Milestone: --- → flash10.x
Status: NEW → ASSIGNED
That verifier error is rather commonly (mis)-used to signal a miscellaneous error in the ABC.  Compiling the .as file in -strict mode does provide a better diagnostic:

tharwood-MacBookPro:mybuild tharwood$ asc -strict ~/sandbox_as/bugs/497371.as

[Compiler] Error #1120: Access of undefined property s.
   /Users/tharwood/sandbox_as/bugs/497371.as, Ln 2, Col 20: 
   var v:Object = new Vector.<s>();
   ...................^
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
Status: RESOLVED → VERIFIED
Flags: in-testsuite? → in-testsuite-
You need to log in before you can comment on or make changes to this bug.