codeworld icon indicating copy to clipboard operation
codeworld copied to clipboard

WURFL can no longer be loaded, preventing initialization of CodeWorld

Open ByteEater-pl opened this issue 1 year ago • 2 comments
trafficstars

The textarea for code is small and the Run button has no visible effect. Probable cause is logged in the console:

Loading failed for the

ByteEater-pl avatar Jun 14 '24 05:06 ByteEater-pl

The bug is here: https://github.com/google/codeworld/blob/a553dabfe0c739f48619d372aaedffddbb39553f/web/js/codeworld.js#L337 The !WURFL side of that check is intended to keep things working if WURFL doesn't load, but since that script is getting loaded in strict mode, accessing an undeclared variable that way is an error rather than just giving undefined.

josephcsible avatar Aug 17 '24 17:08 josephcsible

#1644

josephcsible avatar Aug 17 '24 17:08 josephcsible