This repository was archived by the owner on May 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 115
Commit 906cb65
Fix function object’s prototype with toStringTag. (#85)
* Fix function object’s prototype with toStringTag.
Some projects is implementing objects overriding
.prototype[Symbol.toStringTag] for better read
in .toString output and emulate something fancy
like a type system in javascript.
Unfortunately, it'll crash this project since
it treat non recognized types as "Custom"
and current representation is JsonValue.
My patch just check for this case and use
object representation instead.
* Revert and move convertCustomType to objType1 parent 8025cb4 commit 906cb65
2 files changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | + | ||
42 | + | ||
43 | + | ||
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
| |||
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
89 | + | ||
90 | + | ||
91 | + | ||
92 | + | ||
86 | 93 | | |
87 | 94 | | |
88 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
7 | 12 | | |
8 | 13 | | |
0 commit comments