Commit 0116dd5
committed
Make Namespace.root visible not only for debugging
There are many APIs that expects application codes overwrite global methods.
For example, warn() expects Warning.warn() is overwritten to hook warning
messages.
If we enable namespace, Warning.warn defined in the app code is visible
only in the namespace, and invisible from warn() defined in the root namespace.
So we have to enable users to overwrite Warning.warn in the root namespace.
This is ugly and temporal workaround. We need to define better APIs to enable
users to hook such behaviors in the different way from defining global methods.1 parent fa4c04a commit 0116dd5
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1084 | 1084 | | |
1085 | 1085 | | |
1086 | 1086 | | |
1087 | | - | |
1088 | 1087 | | |
1089 | 1088 | | |
1090 | | - | |
1091 | | - | |
1092 | 1089 | | |
1093 | 1090 | | |
1094 | | - | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
1095 | 1094 | | |
1096 | 1095 | | |
1097 | 1096 | | |
| |||
0 commit comments