Skip to content

Commit 550c535

Browse files
committed
don't need es2020
1 parent 4f12ceb commit 550c535

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/visuals/bitboards/bitboard-visualizer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ export default function BitboardVisualizer({ codeLines, steps, stepDelay = 2000
1717
const [bitIndices, setBitIndices] = useState<number[]>([])
1818

1919
// Ensure we have valid steps and a valid current step
20-
const currentStep = steps && steps.length > 0 ? steps[currentStepIndex] : { highlightLines: [], board: 0n }
20+
const currentStep = steps && steps.length > 0 ? steps[currentStepIndex] : { highlightLines: [], board: BigInt(0) }
2121
const boardValue =
22-
currentStep && typeof currentStep.board === "string" ? BigInt(currentStep.board) : currentStep?.board || 0n
22+
currentStep && typeof currentStep.board === "string" ? BigInt(currentStep.board) : currentStep?.board || BigInt(0)
2323

2424
// Convert bitboard to binary string (padded to 64 bits)
2525
const binaryString = boardValue.toString(2).padStart(64, "0")

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
"target": "es2020",
3+
"target": "ES5",
44
"lib": [
55
"dom",
66
"dom.iterable",

0 commit comments

Comments
 (0)