mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
devtools: Make isAsync and isGenerator optional (#44023)
Make `isAsync` and `isGenerator` optional Testing: Current tests as passing Fixes: part of #36027 Signed-off-by: atbrakhi <atbrakhi@igalia.com> Signed-off-by: eri <eri@igalia.com> Co-authored-by: eri <eri@igalia.com>
This commit is contained in:
@@ -178,7 +178,7 @@ previewers.Function.push(function FunctionPreviewer(obj, depth) {
|
||||
let function_details = {
|
||||
name: obj.name,
|
||||
displayName: obj.displayName,
|
||||
parameterNames: obj.parameterNames,
|
||||
parameterNames: obj.parameterNames ? obj.parameterNames: [],
|
||||
isAsync: obj.isAsyncFunction,
|
||||
isGenerator: obj.isGeneratorFunction,
|
||||
}
|
||||
@@ -192,7 +192,7 @@ previewers.Function.push(function FunctionPreviewer(obj, depth) {
|
||||
kind: "Object",
|
||||
ownProperties,
|
||||
ownPropertiesLength,
|
||||
function: funtion_details
|
||||
function: function_details
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user