-
Notifications
You must be signed in to change notification settings - Fork 396
Reduces "as3XXXX is undefined/null" errors #2353
Conversation
/botio test |
From: Bot.io (Main)ReceivedCommand cmd_test from @yurydelendik received. Current queue size: 0 Live output at: http://areweflashyet.com:8081/0ddf3b327f7c554/output.txt |
From: Bot.io (Main)SuccessFull output at http://areweflashyet.com:8081/0ddf3b327f7c554/output.txt Total script time: 11.93 mins
|
I added quite a bit of comments below. In general I think it would greatly simplify the implementation if the AVM1 builtins could always assume that they have a native (i.e., AVM2) object as their backing store. This could be done by implementing a Reviewed 12 of 12 files at r1, 1 of 1 files at r2. src/avm1/interpreter.ts, line 902 [r1] (raw file): src/avm1/lib/AVM1Globals.ts, line 313 [r1] (raw file): src/avm1/lib/AVM1MovieClip.ts, line 371 [r1] (raw file): src/avm1/lib/AVM1MovieClip.ts, line 420 [r1] (raw file): src/avm1/lib/AVM1MovieClip.ts, line 573 [r1] (raw file): src/avm1/lib/AVM1Utils.ts, line 54 [r1] (raw file): src/avm1/lib/AVM1Utils.ts, line 58 [r1] (raw file): With "template" you essentially mean a dummy object, right? If so, the name isn't ideal, because it's not something that can be used to create an actual instance. "Dummy" or "Placeholder" would make more sense. Also, I don't think this needs to be part of the function name: as far as the AVM1 implementation of the builtin methods is concerned, it's an implementation detail. Perhaps src/avm1/lib/AVM1Utils.ts, line 62 [r1] (raw file): src/avm1/lib/AVM1Utils.ts, line 277 [r1] (raw file): Comments from the review on Reviewable.io |
Review status: all files reviewed at latest revision, 8 unresolved discussions, all commit checks successful. src/avm1/interpreter.ts, line 902 [r1] (raw file): src/avm1/lib/AVM1Globals.ts, line 313 [r1] (raw file): src/avm1/lib/AVM1MovieClip.ts, line 371 [r1] (raw file): src/avm1/lib/AVM1MovieClip.ts, line 573 [r1] (raw file): src/avm1/lib/AVM1Utils.ts, line 54 [r1] (raw file): Comments from the review on Reviewable.io |
Review status: all files reviewed at latest revision, 4 unresolved discussions, all commit checks successful. src/avm1/lib/AVM1MovieClip.ts, line 371 [r1] (raw file): src/avm1/lib/AVM1Utils.ts, line 54 [r1] (raw file): For all uses of Comments from the review on Reviewable.io |
f81ddee
to
1980204
Compare
/botio test Review status: 11 of 17 files reviewed at latest revision, all discussions resolved, some commit checks pending. Comments from the review on Reviewable.io |
From: Bot.io (Main)ReceivedCommand cmd_test from @yurydelendik received. Current queue size: 0 Live output at: http://areweflashyet.com:8081/c161e376bf85ea5/output.txt |
From: Bot.io (Main)SuccessFull output at http://areweflashyet.com:8081/c161e376bf85ea5/output.txt Total script time: 11.94 mins
|
Nice, thank you. r=me with the feedback on comments addressed. Reviewed 6 of 6 files at r3. src/avm1/lib/AVM1Utils.ts, line 51 [r3] (raw file): src/avm1/lib/AVM1Utils.ts, line 58 [r3] (raw file): src/avm1/lib/AVM1Utils.ts, line 66 [r3] (raw file): src/avm1/lib/AVM1Utils.ts, line 68 [r3] (raw file): Comments from the review on Reviewable.io |
1980204
to
789a73d
Compare
Reduces "as3XXXX is undefined/null" errors
Reduces amount of "as3XXXX is undefined/null":