Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
P
parenscript
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 2
    • Merge Requests 2
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • parenscript
  • parenscript
  • Issues
  • #2

Closed
Open
Opened Feb 02, 2019 by Bill St. Clair@billstclair

Document __PS_MV_REG

The JavaScript variable __PS_MV_REG is used to return multiple values from functions. In Parenscript version 2.6, it was set only when you actually RETURNED multiple values. In 2.7, it is set to [] before every function return. If your JavaScript happens to "use strict";, this will cause a runtime error, unless you include the following before that code executes:

var __PS_MV_REG;

This declaration either needs to be added somewhere or, since I can't think of a good place to put it, other than the header of the HTML file including the Parenscript output, which isn't under Parenscript's control, documented.

Edited Feb 02, 2019 by Bill St. Clair
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: parenscript/parenscript#2