We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a1bc4e commit dbe4844Copy full SHA for dbe4844
deps/v8/src/mirror-debugger.js
@@ -19,16 +19,9 @@ function ToggleMirrorCache(value) {
19
}
20
21
22
-// Wrapper to check whether an object is a Promise. The call may not work
23
-// if promises are not enabled.
24
-// TODO(yangguo): remove try-catch once promises are enabled by default.
25
function ObjectIsPromise(value) {
26
- try {
27
- return IS_SPEC_OBJECT(value) &&
28
- !IS_UNDEFINED(%DebugGetProperty(value, builtins.$promiseStatus));
29
- } catch (e) {
30
- return false;
31
- }
+ return IS_SPEC_OBJECT(value) &&
+ !IS_UNDEFINED(%DebugGetProperty(value, builtins.$promiseStatus));
32
33
34
0 commit comments