wintercg / proposal-common-minimum-api

https://common-min-api.proposal.wintercg.org/
Other
227 stars 13 forks source link

existence of globalThis #12

Closed frank-dspeed closed 2 years ago

frank-dspeed commented 2 years ago

The existence of globalThis is agreed on by the spec and it should exist in all environments as it is a reaction to the following problem:

why

it got questioned and i want to give my 5cent as representant of 4 engines and 2 languages where it is the case that it always exists

lucacasonato commented 2 years ago

This is not something we have to call out explicitly, as the existence of globalThis is already something that all conformant ECMA262 implementations must have already.

frank-dspeed commented 2 years ago

@lucacasonato then i missreaded the notes in the last meeting how should i interpret that ? It reads for me like it is qestioned if we should assume the existince of globalThis

- Should globalThis be there at all? Is that more a part of the language
       spec?

and i wanted to make clear it is part of the language spec and is not even avoid able for none engine authors.