DevTools: Implement a reliable check for isNodeJS()
The isNodeJS() method validates whether target has only SDK.Target.Capability.JS set. This patch makes it more explicit and resolves the existing TODO in the isNodeJS() method. The creator of the target must now explicitly mark the target as Node.js by calling markAsNodeJS() on the target object, thus avoiding the dependency on SDK.Target.Capability.JS. Change-Id: I4da9af58ddc42eba2b6b91f7b1b81b411180256b Reviewed-on: https://chromium-review.googlesource.com/1116761 Commit-Queue: Andrey Lushnikov <lushnikov@chromium.org> Reviewed-by:Andrey Lushnikov <lushnikov@chromium.org> Cr-Commit-Position: refs/heads/master@{#572375}
Showing
Please register or sign in to comment