ID:2798255
 
Resolved
Attempting to access an invalid var under world at runtime will now throw an error, whereas in the past it failed silently. This applies only to worlds compiled in version 515 or later.
BYOND Version:514
Operating System:N/A
Web Browser:N/A
Applies to:Dream Daemon
Status: Resolved (515.1590)

This issue has been resolved.
Descriptive Problem Summary:
Attempting to read from or write to a var that is not defined on /world should throw a runtime error, instead writing fails silently and reading returns null.
Numbered Steps to Reproduce Problem:
Run this project: https://github.com/DamianX/byondbugs/raw/main/worldvars/ worldvars.zip
Code Snippet (if applicable) to Reproduce Problem:
/world/New()
..()
world:icon = 1 // Should throw a runtime error, icon does not exist on world
world.log << isnull(world:icon) // outputs null, should throw instead


Expected Results:
Runtime errors.
Actual Results:
Nothing at all.
Does the problem occur:
Every time? Or how often? Every time.
In other games? Yes.
In other user accounts? Yes.
On other computers? Yes.

When does the problem NOT occur?
Don't know.
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
Don't know.
Lummox JR resolved issue
This change will impact worlds compiled in BYOND 515 or later.
Lummox JR resolved issue with message:
Attempting to access an invalid var under world at runtime will now throw an error, whereas in the past it failed silently. This applies only to worlds compiled in version 515 or later.