Khan / Khan/structuredjs

Unexpected match of Structures

Open
#24 8 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
198
Forks
18
PR merge metrics
No merged PRs in 30d

Description

This Structure:

```
var $t = _;

draw = function() {
// You can add whatever code you want here, it still passes
var s = "My cat is fluffy";
};
```

matches true to:

```
// For loop has to be before draw
for (var x = 0; x < 1; x++) {
var a = 0; // This line is not necessary on the demo
}

// Var is required here
var draw = function() {

};
```

The problem is present in both KA and the demo.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the two Structure snippets in both KA and the demo, where the first currently matches the second. Trace the matching behavior and verify that these structurally different snippets no longer match in either context; the issue provides no file or test path to start from.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.