Commit 27f17e5
authored
Add additional constructor callback check for nullptr (#105)
If a JS object constructor is defined natively, and the native callback
returns nullptr, we should return the JS object instance instead of
nullptr. This behavior should match what happens with other JS engines
by default.1 parent 6c1fba4 commit 27f17e5
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
340 | | - | |
| 340 | + | |
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
| |||
0 commit comments