We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
// .dcrc (dom console rc file) // var global = { __proto__: window } // Object.defineProperty(global, 'ls', { Object.defineProperty(window, 'ls', { // configurable: true, // ... get: function () { var cmd = function (a,b,c) { console.log('execute command `ls`', 'params are `a`, `b`, `c`') } cmd.valueOf = function () { setTimeout(function () { console.log('HELP for command `ls`', '...') }, 0) return 'ls' } return cmd } })
use
// devtools console ls // function ls // => HELP for command `ls` // ... ls(1,2,3,4) // execute command `ls` params are `a`, `b`, `c` ls`foo bar` // execute command `ls` params are `a`, `b`, `c`
maybe the above needs some more thoughts about:
ps
No branches or pull requests
The text was updated successfully, but these errors were encountered: