.continue() method

Open
#826 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript, python
Domain
compilers

Research direction

Start in modules/org/transcrypt/compiler.py, where default JavaScript aliases are defined. Read the existing alias handling and check how reserved keywords such as continue and catch are parsed. Done means the requested aliases compile to the corresponding JavaScript method names without parser errors, with the scope of any additional aliases resolved.

Written by the indexing model from the issue text.

Description

When using IndexedDB, there is a continue() method in IDBCursor object. It is impossible to use in python due to parser error as "continue" is a reserved keyword. Trivial solution is to add 'js_continue' => 'continue' default alias into modules/org/transcrypt/compiler.py. Maybe it makes sense to add all python keywords this way. At least some other keywords like js_catch which is used in promises should be added.

Dominant language
Python
Stars
2.9k
Forks
218
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from TranscryptOrg/Transcrypt

All issues in TranscryptOrg/Transcrypt

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.