Message-ID: <20231011104032.47cd0f47@Tarkus>
Date: 2023-10-11T07:40:32Z
From: Ivan Krylov
Subject: [R-pkg-devel] pkg check: SyntaxError: break must be inside loop or switch
In-Reply-To: <CAAhN7=pjA=3CRfCW8i3P9-QtGqAo0pW0B5QKTA7M-PE9ZcGEwQ@mail.gmail.com>
? Tue, 10 Oct 2023 16:36:31 +0200
Charles Driver <cdriver.aus at gmail.com> ?????:
> SyntaxError: break must be inside loop or switch
This looks like an error coming from a JavaScript engine or from a
JavaScript-derived language:
https://github.com/blld/libecc/blob/88877a46ba9b0a47567aa999a4380b9e793783a8/src/main.c#L714
https://github.com/ynezz/openwrt-ucode/blob/5163867269fc04fa01ec5e9f8df3384c933339f2/compiler.c#L2930https://github.com/Bobris/Njsast/blob/930f59a9694432580a7b1367680c56672cfe4cd2/Njsast/Compress/LoopControlFinderTreeWalker.cs#L34
(Most modern implementations say "_unlabeled_ break must be inside loop
or switch", but this may come from an older version.)
This seems to have nothing to do with Stan either; at the very least I
cannot find this exact error message in https://github.com/stan-dev.
When R complains about a wrongly placed `break`, it also looks
differently:
break
# Error: no loop for break/next, jumping to top level
An infrastructure hiccup on Win-Builder?
--
Best regards,
Ivan