Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Specifying global object (globalThis)

Aperta
#156 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript, ruby
Ambito
backend

Direzione di ricerca

Read the issue discussion and the MiniRacer context around how JavaScript environments are created. The request is to specify a global object so browser-style names such as location and document are available; determine the intended API and how completion should be verified with a test. The issue has had no comment for years, so check whether the work is still wanted before starting.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

I'm trying to create an environment for scripts that expect to be run in browsers. I can define window, but that doesn't help when the JS is looking at location or document or any other number of things. I presume things like that work because window is the global object, and they're defined there (window.location, window.document, etc.)

Is there a way to specify the global object?

Lingua principale
JavaScript
Stelle
628
Fork
100
Merge medio
1g 20h
PR unite (30g)
2

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di rubyjs/mini_racer

Tutte le issue di rubyjs/mini_racer

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.