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 28f1d0d commit d93938bCopy full SHA for d93938b
src/compiler/jsexecute.js
@@ -223,7 +223,7 @@ runtimeFunctions.retire = `const retire = () => {
223
thread.target.runtime.sequencer.retireThread(thread);
224
}`;
225
226
-runtimeFunctions.NaNToZero = `const NaNToZero = value => isNaN(value) ? 0 : value`;
+runtimeFunctions.NaNToZero = `const NaNToZero = value => value === value ? value : 0`;
227
228
/**
229
* Scratch cast to boolean.
0 commit comments