You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add webshellStrictMode prop to raise errors on inconsistencies
By default, warning messages will be logged when `webshellDebug` is set
to `true`, which defaults to `__DEV__`. From now on, errors will be
raised if `webshellStrictMode` is set to `true`. Defaults to `false`.
returndescribe`Web script from feature "${identifier}" sent an event for "${handlerId}" shell handler, but there is no shell handler registered for this feature. Use FeatureBuilder.withShellHandler to register that handler, or make sure its name is not misspell in the DOM script.`;
30
+
}
31
+
},
32
+
WEBSH_FEAT_MISSING_WEB_HANDLER: {
33
+
code: 'WEBSH_FEAT_MISSING_WEB_HANDLER',
34
+
verbose: function(identifier,handlerId){
35
+
returndescribe`Feature "${identifier}" has no Web handler with ID "${handlerId}".`;
36
+
}
37
+
},
38
+
WEBSH_FEAT_MISSING_IN_SHELL: {
39
+
code: 'WEBSH_FEAT_MISSING_IN_SHELL',
40
+
verbose: function(identifier){
41
+
returndescribe`Feature ${identifier} has not be instantiated in this shell.`;
42
+
}
43
+
},
44
+
WEBSH_SCRIPT_ERROR: {
45
+
code: 'WEBSH_SCRIPT_ERROR',
46
+
verbose: function(identifier,body='empty error'){
47
+
returndescribe`Web script from feature "${identifier}" raised an error: ${body}`;
48
+
}
49
+
},
50
+
WEBSH_WEBVIEW_MISSING_MEMBER: {
51
+
code: 'WEBSH_WEBVIEW_MISSING_MEMBER',
52
+
verbose: function(){
53
+
returndescribe`The WebView element you passed is missing "injectJavaScript" method.`;
0 commit comments