Commit 72c554a
sqlite: return results with null prototype
These objects are dictionaries, and a query can return columns with
special names like `__proto__` (which would be ignored without this
change).
Also construct the object by passing vectors of properties for better
performance and improve error handling by using `MaybeLocal`.
PR-URL: #54350
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 290f6ce commit 72c554aCopy full SHA for 72c554a
File tree
Expand file treeCollapse file tree
8 files changed
+76
-61
lines changedOpen diff view settings
Filter options
- src
- test/parallel
Expand file treeCollapse file tree
8 files changed
+76
-61
lines changedOpen diff view settings
Collapse file
+45-43Lines changed: 45 additions & 43 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
25 | 25 | |
26 | 26 | |
27 | 27 | |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
28 | 32 | |
29 | 33 | |
30 | 34 | |
| ||
405 | 409 | |
406 | 410 | |
407 | 411 | |
408 | | - |
| 412 | + |
409 | 413 | |
410 | 414 | |
411 | 415 | |
| ||
419 | 423 | |
420 | 424 | |
421 | 425 | |
422 | | - |
| 426 | + |
423 | 427 | |
424 | 428 | |
425 | 429 | |
| ||
428 | 432 | |
429 | 433 | |
430 | 434 | |
431 | | - |
432 | | - |
433 | | - |
434 | | - |
435 | | - |
| 435 | + |
436 | 436 | |
437 | 437 | |
438 | | - |
| 438 | + |
439 | 439 | |
440 | 440 | |
441 | 441 | |
| ||
451 | 451 | |
452 | 452 | |
453 | 453 | |
454 | | - |
| 454 | + |
455 | 455 | |
456 | 456 | |
457 | 457 | |
458 | 458 | |
459 | | - |
| 459 | + |
460 | 460 | |
461 | 461 | |
462 | | - |
463 | | - |
464 | | - |
465 | | - |
466 | | - |
| 462 | + |
467 | 463 | |
468 | 464 | |
469 | 465 | |
| ||
474 | 470 | |
475 | 471 | |
476 | 472 | |
| 473 | + |
477 | 474 | |
478 | | - |
479 | | - |
| 475 | + |
480 | 476 | |
481 | 477 | |
482 | 478 | |
483 | 479 | |
484 | 480 | |
485 | 481 | |
486 | 482 | |
487 | | - |
| 483 | + |
488 | 484 | |
489 | | - |
| 485 | + |
| 486 | + |
| 487 | + |
| 488 | + |
490 | 489 | |
491 | 490 | |
492 | | - |
493 | | - |
494 | | - |
495 | | - |
496 | | - |
497 | | - |
498 | | - |
499 | | - |
| 491 | + |
| 492 | + |
| 493 | + |
| 494 | + |
| 495 | + |
| 496 | + |
500 | 497 | |
501 | 498 | |
| 499 | + |
| 500 | + |
502 | 501 | |
503 | 502 | |
504 | 503 | |
505 | 504 | |
506 | | - |
507 | | - |
508 | | - |
| 505 | + |
| 506 | + |
509 | 507 | |
510 | 508 | |
511 | 509 | |
| ||
514 | 512 | |
515 | 513 | |
516 | 514 | |
| 515 | + |
517 | 516 | |
518 | | - |
519 | | - |
| 517 | + |
520 | 518 | |
521 | 519 | |
522 | 520 | |
| ||
526 | 524 | |
527 | 525 | |
528 | 526 | |
529 | | - |
| 527 | + |
530 | 528 | |
531 | 529 | |
532 | 530 | |
| ||
535 | 533 | |
536 | 534 | |
537 | 535 | |
538 | | - |
| 536 | + |
| 537 | + |
| 538 | + |
| 539 | + |
539 | 540 | |
540 | 541 | |
541 | | - |
542 | | - |
543 | | - |
544 | | - |
545 | | - |
546 | | - |
547 | | - |
548 | | - |
| 542 | + |
| 543 | + |
| 544 | + |
| 545 | + |
| 546 | + |
| 547 | + |
549 | 548 | |
550 | 549 | |
| 550 | + |
| 551 | + |
| 552 | + |
551 | 553 | |
552 | 554 | |
553 | 555 | |
| ||
676 | 678 | |
677 | 679 | |
678 | 680 | |
679 | | - |
| 681 | + |
680 | 682 | |
681 | 683 | |
682 | 684 | |
|
Collapse file
+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
80 | 80 | |
81 | 81 | |
82 | 82 | |
83 | | - |
84 | | - |
| 83 | + |
| 84 | + |
85 | 85 | |
86 | 86 | |
87 | 87 | |
|
Collapse file
test/parallel/test-sqlite-data-types.js
Copy file name to clipboardExpand all lines: test/parallel/test-sqlite-data-types.js+5-1Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
49 | 49 | |
50 | 50 | |
51 | 51 | |
| 52 | + |
52 | 53 | |
53 | 54 | |
54 | 55 | |
55 | 56 | |
56 | 57 | |
57 | 58 | |
58 | 59 | |
| 60 | + |
59 | 61 | |
60 | 62 | |
61 | 63 | |
62 | 64 | |
63 | 65 | |
64 | 66 | |
65 | 67 | |
| 68 | + |
66 | 69 | |
67 | 70 | |
68 | 71 | |
69 | 72 | |
70 | 73 | |
71 | 74 | |
72 | 75 | |
| 76 | + |
73 | 77 | |
74 | 78 | |
75 | 79 | |
| ||
151 | 155 | |
152 | 156 | |
153 | 157 | |
154 | | - |
| 158 | + |
155 | 159 | |
156 | 160 | |
157 | 161 | |
Collapse file
test/parallel/test-sqlite-database-sync.js
Copy file name to clipboardExpand all lines: test/parallel/test-sqlite-database-sync.js+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
143 | 143 | |
144 | 144 | |
145 | 145 | |
146 | | - |
147 | | - |
| 146 | + |
| 147 | + |
148 | 148 | |
149 | 149 | |
150 | 150 | |
|
Collapse file
test/parallel/test-sqlite-named-parameters.js
Copy file name to clipboardExpand all lines: test/parallel/test-sqlite-named-parameters.js+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
42 | 42 | |
43 | 43 | |
44 | 44 | |
45 | | - |
| 45 | + |
46 | 46 | |
47 | 47 | |
48 | 48 | |
| ||
57 | 57 | |
58 | 58 | |
59 | 59 | |
60 | | - |
| 60 | + |
61 | 61 | |
62 | 62 | |
63 | 63 | |
|
Collapse file
test/parallel/test-sqlite-statement-sync.js
Copy file name to clipboardExpand all lines: test/parallel/test-sqlite-statement-sync.js+15-6Lines changed: 15 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
43 | 43 | |
44 | 44 | |
45 | 45 | |
46 | | - |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
47 | 55 | |
48 | 56 | |
49 | 57 | |
| ||
71 | 79 | |
72 | 80 | |
73 | 81 | |
74 | | - |
75 | | - |
| 82 | + |
| 83 | + |
76 | 84 | |
77 | 85 | |
78 | 86 | |
| ||
171 | 179 | |
172 | 180 | |
173 | 181 | |
174 | | - |
| 182 | + |
175 | 183 | |
176 | | - |
| 184 | + |
177 | 185 | |
178 | | - |
| 186 | + |
179 | 187 | |
180 | 188 | |
181 | 189 | |
| ||
223 | 231 | |
224 | 232 | |
225 | 233 | |
| 234 | + |
226 | 235 | |
227 | 236 | |
228 | 237 | |
|
Collapse file
test/parallel/test-sqlite-transactions.js
Copy file name to clipboardExpand all lines: test/parallel/test-sqlite-transactions.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
37 | 37 | |
38 | 38 | |
39 | 39 | |
40 | | - |
| 40 | + |
41 | 41 | |
42 | 42 | |
43 | 43 | |
|
Collapse file
test/parallel/test-sqlite.js
Copy file name to clipboardExpand all lines: test/parallel/test-sqlite.js+4-4Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
77 | 77 | |
78 | 78 | |
79 | 79 | |
80 | | - |
| 80 | + |
81 | 81 | |
82 | 82 | |
83 | 83 | |
84 | | - |
| 84 | + |
85 | 85 | |
86 | 86 | |
87 | 87 | |
| ||
90 | 90 | |
91 | 91 | |
92 | 92 | |
93 | | - |
| 93 | + |
94 | 94 | |
95 | 95 | |
96 | 96 | |
97 | | - |
| 97 | + |
98 | 98 | |
99 | 99 | |
0 commit comments