Commit 27c2be0
authored
Don't inherit from the default Object for the token dictionary.
Ran into a problem tokenizing the string "[name] Constructors, LLC", since at some point `expandedToken` is `'constructor'`, which is valid default object function.
aka
```
({})['constructor']
> ƒ Object() { [native code] }
```
This uses a an object that doesn't inherent the Object functions for the `tokenDictionary`, getting around the issue.1 parent 6404546 commit 27c2be0
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
0 commit comments