- Press
cmd+shift+p - Type (until it shows)
Preferences: Open Keyboard Shortcuts - Press enter
- Add the preferences to the json file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --> HELLo! | |
| var x = 2; | |
| var y=42<!--x; | |
| function z() { | |
| return 'a'; | |
| } | |
| with (new Proxy(globalThis, {})) { | |
| function z() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var p = Promise.resolve(1).then(v => console.log(v); | |
| console.log(0); | |
| await import('foo'); | |
| console.log(2); | |
| p.then(() => console.log(3); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| The WeakRef Constructor | |
| https://tc39.github.io/proposal-weakrefs/#sec-weak-ref-constructor | |
| - [ ] is the initial value of the WeakRef property of the global object. | |
| - [ ] is designed to be subclassable. It may be used as the value in an extends clause of a class definition. Subclass constructors that intend to inherit the specified WeakRef behaviour must include a super call to the WeakRef constructor to create and initialize the subclass instance with the internal state necessary to support the WeakRef.prototype built-in methods. | |
| WeakRef ( target ) | |
| https://tc39.github.io/proposal-weakrefs/#sec-weak-ref-target | |
| 1. [ ] If NewTarget is undefined, throw a TypeError exception. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function uniqBy(iter, mapFn) { | |
| var map = new Map(); | |
| for (let item of iter) { | |
| let key = mapFn(item); | |
| // Use the first given key identifier | |
| if (map.has(key)) { | |
| continue; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ```js | |
| Object.setPrototypeOf(Array.prototype, new Int8Array(0)); | |
| const a = []; | |
| a[0] = 4; | |
| console.log(+a[0]); | |
| ``` | |
| --- | |
| `a[0] = 4;` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Status of today + dynamic import() proposal, await unwraps namespace objects. | |
| //--- a.js | |
| export let then = async () => {/* code */}; | |
| //--- b.js | |
| import * as ns from 'a.js'; | |
| async function fn() { | |
| await Promise.resolve(ns); // should unwrap the "thenable" namespace |
Some browsers feature non-standard attributes incremental and onsearch for the <input type=search> elements. This also implies the search event being fired.
- Specified? no
- Proposed? no.
- This link shows a refusal to propose the idea and reasons for it.
- Is it a good idea? no.
- The refusal to proposal the idea bases on the fact it's already redundant with the
oninputandonsubmitevent handlers
NewerOlder