We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9560377 commit 28f1d0dCopy full SHA for 28f1d0d
src/compiler/jsexecute.js
@@ -223,10 +223,7 @@ runtimeFunctions.retire = `const retire = () => {
223
thread.target.runtime.sequencer.retireThread(thread);
224
}`;
225
226
-runtimeFunctions.NaNToZero = `const NaNToZero = value => {
227
- if (isNaN(value)) return 0;
228
- return value;
229
-}`;
+runtimeFunctions.NaNToZero = `const NaNToZero = value => isNaN(value) ? 0 : value`;
230
231
/**
232
* Scratch cast to boolean.
0 commit comments