Commit 35e8a25
committed
fix: use hasOwnProperty instead of
`keywordsBlockAndTransactionProperties[cur].some` is not a function error.
If current token (`cur`) is a method from Object like `toString`, `keywordsBlockAndTransactionProperties[cur]` is
keywordsBlockAndTransactionProperties['toString'] and would be a function, then `fn.some` would throw the error.[]
1 parent bf1531a commit 35e8a25
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
342 | | - | |
343 | | - | |
| 342 | + | |
| 343 | + | |
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
351 | | - | |
352 | | - | |
| 351 | + | |
| 352 | + | |
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
| |||
0 commit comments