Skip to content

Commit

Permalink
ya
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Jan 18, 2025
1 parent cfefd27 commit c39eadc
Showing 1 changed file with 66 additions and 2 deletions.
68 changes: 66 additions & 2 deletions text/1070-default-globals-for-strict-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ TC39:
[Link](https://limber.glimdown.com/edit?c=MYewdgzgLgBAJgQygmBeGBvGBzATgU3ygEsxsAuGAcgAt8AbekGKOggQipgF8BuAKH4AeKPgC2AB3pJ8APn4xMGbEwBGCegBUaxCADoAUgGUA8gDk90XKWzEAZgE94SBN27CA9KMnTRsoA&format=gjs)
```gjs
<template>
{{globalThis.JSON.stringify @data}}
{{JSON.stringify @data}}
</template>
```
Expand All @@ -152,7 +152,7 @@ TC39:
Atomics.xor(uint8, 0, 2)
<template>
{{globalThis.Atomics.load uint8}} === 5
{{Atomics.load uint8}} === 5
</template>
```
Expand Down Expand Up @@ -427,24 +427,55 @@ WHATWG:
<details><summary>Example</summary>
[Link](https://limber.glimdown.com/edit?c=DwFwpgtgDgNghuAfAKAATtQb0wcxgewCM4YAVACwEsBnAOgSNQCI4BxANWsNYA4BeJgF9ByYAHpw0eEmRA&format=gjs)
```gjs
<template>
{{atob "aGVsbG8="}}
</template>
```
</details>
- [`btoa`](https://html.spec.whatwg.org/multipage/webappapis.html#dom-atob)
<details><summary>Example</summary>
[Link](https://limber.glimdown.com/edit?c=DwFwpgtgDgNghuAfAKAATtQb0wcxgewCM4YAVACwEsBnAOkJHzlQCJywYCWBfb5YAPTho8JMiA&format=gjs)
```gjs
<template>
{{btoa "hello"}}
</template>
```
</details>
- [`postMessage`](https://html.spec.whatwg.org/multipage/web-messaging.html#dom-window-postmessage)
<details><summary>Example</summary>
```gjs
<template>
<button {{on "click" (postMessage "Hello")>
Greet
</button>
</template>
```
</details>
- [`structuredClone`](https://html.spec.whatwg.org/multipage/structured-data.html#dom-structuredclone)
<details><summary>Example</summary>
```gjs
<template>
<SomeComponent @data={{structuredClone @inputData}} />
</template>
```
</details>
Expand Down Expand Up @@ -563,12 +594,45 @@ TC39:
TC39:
- [`Infinity`](https://tc39.es/ecma262/#sec-value-properties-of-the-global-object-infinity)
<details><summary>Example</summary>
```gjs
<template>
{{Infinity}}
</template>
```
</details>
- [`NaN`](https://tc39.es/ecma262/#sec-value-properties-of-the-global-object-nan)
<details><summary>Example</summary>
```gjs
<template>
{{NaN}}
</template>
```
</details>
WHATWG:
- [`isSecureContext`](https://html.spec.whatwg.org/multipage/webappapis.html#dom-issecurecontext)
<details><summary>Example</summary>
```gjs
<template>
{{#if isSecureContext}}
is secure
{{/if}}
</template>
```
</details>
### Potentially matching criteria, but not included
Expand Down

0 comments on commit c39eadc

Please sign in to comment.