You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/SPEC.md
+18-19Lines changed: 18 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -169,7 +169,7 @@ appear within parens. In statement position, semicolons act as they do in javasc
169
169
170
170
12. `switch` with fallthroughs starts with `switch!`, and a phase 3 "[safe switch]" plugin will be written for "safe" switch statements, where each case breaks, and fallthrough is opt-in.
171
171
172
-
13. `with` will be reused for iife. The vanilla, (deprecated in strict mode anyways) `with` must be declared as `with!`
172
+
13. `with` will be reused for various other features, such as iifes (`do with`), `Object.create` syntax sugar (`{ with proto = null }` and property descriptors (`with descriptor writable, not configurable, not enumerable`). The vanilla, (deprecated in strict mode anyways) `with` must be declared as `with with`
173
173
174
174
14. Python-ish import statements: As autocomplete systems can resolve the members to import once we have declared from which module we are importing members, it's more useful to declare the module name first
0 commit comments