Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
"g"
>>> {"id":16,"method":"Runtime.evaluate","params":{"expression":"this","objectGroup":"completion","includeCommandLineAPI":true,"silent":true,"contextId":1,"returnByValue":false,"generatePreview":false,"userGesture":false,"awaitPromise":false,"throwOnSideEffect":false}}
<<< {"id":16,"result":{"result":{"type":"object","className":"global","description":"global","objectId":"{\"injectedScriptId\":1,\"id\":9}"}}}
>>> {"id":17,"method":"Runtime.evaluate","params":{"expression":"g","includeCommandLineAPI":true,"contextId":1,"generatePreview":true,"userGesture":true,"awaitPromise":false,"throwOnSideEffect":true,"timeout":500}}
<<< {"id":17,"result":{"result":{"type":"object","subtype":"error","className":"ReferenceError","description":"ReferenceError: g is not defined\n at <anonymous>:1:1","objectId":"{\"injectedScriptId\":1,\"id\":10}"},"exceptionDetails":{"exceptionId":4,"text":"Uncaught","lineNumber":0,"columnNumber":0,"scriptId":"88","stackTrace":{"callFrames":[{"functionName":"","scriptId":"88","url":"","lineNumber":0,"columnNumber":0}]},"exception":{"type":"object","subtype":"error","className":"ReferenceError","description":"ReferenceError: g is not defined\n at <anonymous>:1:1","objectId":"{\"injectedScriptId\":1,\"id\":11}"}}}}
>>> {"id":18,"method":"Runtime.callFunctionOn","params":{"objectId":"{\"injectedScriptId\":1,\"id\":9}","functionDeclaration":"function getCompletions(type){let object;if(type==='string')\nobject=new String('');else if(type==='number')\nobject=new Number(0);else if(type==='bigint')\nobject=Object(BigInt(0));else if(type==='boolean')\nobject=new Boolean(false);else\nobject=this;const result=[];try{for(let o=object;o;o=Object.getPrototypeOf(o)){if((type==='array'||type==='typedarray')&&o===object&&o.length>9999)\ncontinue;const group={items:[],__proto__:null};try{if(typeof o==='object'&&o.constructor&&o.constructor.name)\ngroup.title=o.constructor.name;}catch(ee){}\nresult[result.length]=group;const names=Object.getOwnPropertyNames(o);const isArray=Array.isArray(o);for(let i=0;i<names.length&&group.items.length<10000;++i){if(isArray&&/^[0-9]/.test(names[i]))\ncontinue;group.items[group.items.length]=names[i];}}}catch(e){}\nreturn result;}","arguments":[{}],"silent":true,"returnByValue":true}}
<<< {"id":18,"result":{"result":{"type":"object","value":[{"items":["Object","Function","Array","Number","parseFloat","parseInt","Infinity","NaN","undefined","Boolean","String","Symbol","Date","Promise","RegExp","Error","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","JSON","Math","console","Intl","ArrayBuffer","Uint8Array","Int8Array","Uint16Array","Int16Array","Uint32Array","Int32Array","Float32Array","Float64Array","Uint8ClampedArray","BigUint64Array","BigInt64Array","DataView","Map","Set","WeakMap","WeakSet","Proxy","Reflect","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape","eval","isFinite","isNaN","SharedArrayBuffer","Atomics","BigInt","WebAssembly","global","process","GLOBAL","root","Buffer","clearImmediate","clearInterval","clearTimeout","setImmediate","setInterval","setTimeout","URL","URLSearchParams","module","require","assert","async_hooks","buffer","child_process","cluster","crypto","dgram","dns","domain","events","fs","http","http2","https","inspector","net","os","path","perf_hooks","punycode","querystring","readline","repl","stream","string_decoder","tls","trace_events","tty","url","util","v8","vm","zlib","_","_error"],"title":"Object"},{"items":["constructor"],"title":"Object"},{"items":["constructor","__defineGetter__","__defineSetter__","hasOwnProperty","__lookupGetter__","__lookupSetter__","isPrototypeOf","propertyIsEnumerable","toString","valueOf","__proto__","toLocaleString"],"title":"Object"}]}}}
>>> {"id":19,"method":"Runtime.releaseObjectGroup","params":{"objectGroup":"completion"}}
<<< {"id":19,"result":{}}
>>> {"id":20,"method":"Runtime.globalLexicalScopeNames","params":{"executionContextId":1}}
<<< {"id":20,"result":{"names":[]}}
>>> {"id":21,"method":"Runtime.evaluate","params":{"expression":"global","includeCommandLineAPI":true,"contextId":1,"generatePreview":true,"userGesture":true,"awaitPromise":false,"throwOnSideEffect":true,"timeout":500}}
<<< {"id":21,"result":{"result":{"type":"object","className":"global","description":"global","objectId":"{\"injectedScriptId\":1,\"id\":12}","preview":{"type":"object","description":"global","overflow":true,"properties":[{"name":"global","type":"object","value":"global"},{"name":"process","type":"object","value":"process"},{"name":"Buffer","type":"function","value":""},{"name":"clearImmediate","type":"function","value":""},{"name":"clearInterval","type":"function","value":""}]}}}}
>>> {"id":22,"method":"Runtime.evaluate","params":{"expression":"g","includeCommandLineAPI":true,"contextId":1,"generatePreview":true,"userGesture":true,"awaitPromise":false,"throwOnSideEffect":true,"timeout":500}}
<<< {"id":22,"result":{"result":{"type":"object","subtype":"error","className":"ReferenceError","description":"ReferenceError: g is not defined\n at <anonymous>:1:1","objectId":"{\"injectedScriptId\":1,\"id\":13}"},"exceptionDetails":{"exceptionId":5,"text":"Uncaught","lineNumber":0,"columnNumber":0,"scriptId":"91","stackTrace":{"callFrames":[{"functionName":"","scriptId":"91","url":"","lineNumber":0,"columnNumber":0}]},"exception":{"type":"object","subtype":"error","className":"ReferenceError","description":"ReferenceError: g is not defined\n at <anonymous>:1:1","objectId":"{\"injectedScriptId\":1,\"id\":14}"}}}}
"global."
>>> {"id":35,"method":"Runtime.evaluate","params":{"expression":"global.","includeCommandLineAPI":true,"contextId":1,"generatePreview":true,"userGesture":true,"awaitPromise":false,"throwOnSideEffect":true,"timeout":500}}
<<< {"id":35,"result":{"result":{"type":"object","subtype":"error","className":"SyntaxError","description":"SyntaxError: Unexpected end of input","objectId":"{\"injectedScriptId\":1,\"id\":26}"},"exceptionDetails":{"exceptionId":8,"text":"Uncaught","lineNumber":0,"columnNumber":6,"scriptId":"102","exception":{"type":"object","subtype":"error","className":"SyntaxError","description":"SyntaxError: Unexpected end of input","objectId":"{\"injectedScriptId\":1,\"id\":27}"}}}}
>>> {"id":36,"method":"Runtime.evaluate","params":{"expression":"global","objectGroup":"completion","includeCommandLineAPI":true,"silent":true,"contextId":1,"returnByValue":false,"generatePreview":false,"userGesture":false,"awaitPromise":false,"throwOnSideEffect":false}}
<<< {"id":36,"result":{"result":{"type":"object","className":"global","description":"global","objectId":"{\"injectedScriptId\":1,\"id\":28}"}}}
>>> {"id":37,"method":"Runtime.callFunctionOn","params":{"objectId":"{\"injectedScriptId\":1,\"id\":28}","functionDeclaration":"function getCompletions(type){let object;if(type==='string')\nobject=new String('');else if(type==='number')\nobject=new Number(0);else if(type==='bigint')\nobject=Object(BigInt(0));else if(type==='boolean')\nobject=new Boolean(false);else\nobject=this;const result=[];try{for(let o=object;o;o=Object.getPrototypeOf(o)){if((type==='array'||type==='typedarray')&&o===object&&o.length>9999)\ncontinue;const group={items:[],__proto__:null};try{if(typeof o==='object'&&o.constructor&&o.constructor.name)\ngroup.title=o.constructor.name;}catch(ee){}\nresult[result.length]=group;const names=Object.getOwnPropertyNames(o);const isArray=Array.isArray(o);for(let i=0;i<names.length&&group.items.length<10000;++i){if(isArray&&/^[0-9]/.test(names[i]))\ncontinue;group.items[group.items.length]=names[i];}}}catch(e){}\nreturn result;}","arguments":[{}],"silent":true,"returnByValue":true}}
<<< {"id":37,"result":{"result":{"type":"object","value":[{"items":["Object","Function","Array","Number","parseFloat","parseInt","Infinity","NaN","undefined","Boolean","String","Symbol","Date","Promise","RegExp","Error","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","JSON","Math","console","Intl","ArrayBuffer","Uint8Array","Int8Array","Uint16Array","Int16Array","Uint32Array","Int32Array","Float32Array","Float64Array","Uint8ClampedArray","BigUint64Array","BigInt64Array","DataView","Map","Set","WeakMap","WeakSet","Proxy","Reflect","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape","eval","isFinite","isNaN","SharedArrayBuffer","Atomics","BigInt","WebAssembly","global","process","GLOBAL","root","Buffer","clearImmediate","clearInterval","clearTimeout","setImmediate","setInterval","setTimeout","URL","URLSearchParams","module","require","assert","async_hooks","buffer","child_process","cluster","crypto","dgram","dns","domain","events","fs","http","http2","https","inspector","net","os","path","perf_hooks","punycode","querystring","readline","repl","stream","string_decoder","tls","trace_events","tty","url","util","v8","vm","zlib","_","_error"],"title":"Object"},{"items":["constructor"],"title":"Object"},{"items":["constructor","__defineGetter__","__defineSetter__","hasOwnProperty","__lookupGetter__","__lookupSetter__","isPrototypeOf","propertyIsEnumerable","toString","valueOf","__proto__","toLocaleString"],"title":"Object"}]}}}
>>> {"id":38,"method":"Runtime.releaseObjectGroup","params":{"objectGroup":"completion"}}
<<< {"id":38,"result":{}}
>>> {"id":39,"method":"Runtime.evaluate","params":{"expression":"global.Infinity","includeCommandLineAPI":true,"contextId":1,"generatePreview":true,"userGesture":true,"awaitPromise":false,"throwOnSideEffect":true,"timeout":500}}
<<< {"id":39,"result":{"result":{"type":"number","unserializableValue":"Infinity","description":"Infinity"}}}
>>> {"id":40,"method":"Runtime.evaluate","params":{"expression":"global.","includeCommandLineAPI":true,"contextId":1,"generatePreview":true,"userGesture":true,"awaitPromise":false,"throwOnSideEffect":true,"timeout":500}}
<<< {"id":40,"result":{"result":{"type":"object","subtype":"error","className":"SyntaxError","description":"SyntaxError: Unexpected end of input","objectId":"{\"injectedScriptId\":1,\"id\":29}"},"exceptionDetails":{"exceptionId":9,"text":"Uncaught","lineNumber":0,"columnNumber":6,"scriptId":"106","exception":{"type":"object","subtype":"error","className":"SyntaxError","description":"SyntaxError: Unexpected end of input","objectId":"{\"injectedScriptId\":1,\"id\":30}"}}}}
'afds'.
>>> {"id":42,"method":"Runtime.evaluate","params":{"expression":"'afds'","objectGroup":"completion","includeCommandLineAPI":true,"silent":true,"contextId":1,"returnByValue":false,"generatePreview":false,"userGesture":false,"awaitPromise":false,"throwOnSideEffect":false}}
<<< {"id":42,"result":{"result":{"type":"string","value":"afds"}}}
>>> {"id":43,"method":"Runtime.evaluate","params":{"expression":"'afds'.","includeCommandLineAPI":true,"contextId":1,"generatePreview":true,"userGesture":true,"awaitPromise":false,"throwOnSideEffect":true,"timeout":500}}
<<< {"id":43,"result":{"result":{"type":"object","subtype":"error","className":"SyntaxError","description":"SyntaxError: Unexpected end of input","objectId":"{\"injectedScriptId\":1,\"id\":26}"},"exceptionDetails":{"exceptionId":22,"text":"Uncaught","lineNumber":0,"columnNumber":6,"scriptId":"141","exception":{"type":"object","subtype":"error","className":"SyntaxError","description":"SyntaxError: Unexpected end of input","objectId":"{\"injectedScriptId\":1,\"id\":27}"}}}}
>>> {"id":44,"method":"Runtime.evaluate","params":{
"expression":"(function getCompletions(type){let object;if(type==='string')\nobject=new String('');else if(type==='number')\nobject=new Number(0);else if(type==='bigint')\nobject=Object(BigInt(0));else if(type==='boolean')\nobject=new Boolean(false);else\nobject=this;const result=[];try{for(let o=object;o;o=Object.getPrototypeOf(o)){if((type==='array'||type==='typedarray')&&o===object&&o.length>9999)\ncontinue;const group={items:[],__proto__:null};try{if(typeof o==='object'&&o.constructor&&o.constructor.name)\ngroup.title=o.constructor.name;}catch(ee){}\nresult[result.length]=group;const names=Object.getOwnPropertyNames(o);const isArray=Array.isArray(o);for(let i=0;i<names.length&&group.items.length<10000;++i){if(isArray&&/^[0-9]/.test(names[i]))\ncontinue;group.items[group.items.length]=names[i];}}}catch(e){}\nreturn result;})(\"string\")",
"objectGroup":"completion",
"includeCommandLineAPI":false,
"silent":true,
"contextId":1,
"returnByValue":true,
"generatePreview":false,
"userGesture":false,
"awaitPromise":false
}}
<<< {"id":44,"result":{"result":{"type":"object","value":[{"items":["length"],"title":"String"},{"items":["length","constructor","anchor","big","blink","bold","charAt","charCodeAt","codePointAt","concat","endsWith","fontcolor","fontsize","fixed","includes","indexOf","italics","lastIndexOf","link","localeCompare","match","normalize","padEnd","padStart","repeat","replace","search","slice","small","split","strike","sub","substr","substring","sup","startsWith","toString","trim","trimLeft","trimRight","toLowerCase","toUpperCase","valueOf","toLocaleLowerCase","toLocaleUpperCase","trimStart","trimEnd"],"title":"String"},{"items":["constructor","__defineGetter__","__defineSetter__","hasOwnProperty","__lookupGetter__","__lookupSetter__","isPrototypeOf","propertyIsEnumerable","toString","valueOf","__proto__","toLocaleString"],"title":"Object"}]}}}
>>> {"id":45,"method":"Runtime.releaseObjectGroup","params":{"objectGroup":"completion"}}
<<< {"id":45,"result":{}}
>>> {"id":46,"method":"Runtime.evaluate","params":{"expression":"'afds'. length","includeCommandLineAPI":true,"contextId":1,"generatePreview":true,"userGesture":true,"awaitPromise":false,"throwOnSideEffect":true,"timeout":500}}
<<< {"id":46,"result":{"result":{"type":"number","value":4,"description":"4"}}}
>>> {"id":47,"method":"Runtime.evaluate","params":{"expression":"'afds'. length","includeCommandLineAPI":true,"contextId":1,"generatePreview":true,"userGesture":true,"awaitPromise":false,"throwOnSideEffect":true,"timeout":500}}
<<< {"id":47,"result":{"result":{"type":"number","value":4,"description":"4"}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.