String.join causes maximum recursion depth to be reached on FF and Chrome

Aperta
#380 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript, python
Ambito
compilers

Direzione di ricerca

Start by reproducing the reported 'foo'.join('bar') case in a browser console, then locate the Transcrypt compiler output that generates the shown String.prototype.join block. Done means the generated JavaScript no longer recurses in Firefox or Chrome and the reproduction succeeds.

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

Descrizione

STATE: under construction

Awesome job! This is a great project and I've really enjoyed working with it so far.

I did come across one minor issue. I apologize in advance if it's already been addressed or if it's an error on my part.

I noticed that my transpiled code contains the following block

String.prototype.join = function (strings) {
return strings.join (this);
};

This causes FireFox and Chrome to recurse infinitely.

Steps to reproduce:

  1. open the dev console of any page which includes transpiled javascript created with Transcrypt
  2. enter: 'foo'.join('bar')
  3. Maximum recursion depth reached
Lingua principale
Python
Stelle
2.9k
Fork
218
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

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 TranscryptOrg/Transcrypt

Tutte le issue di TranscryptOrg/Transcrypt

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.