Skip to content

[spec] Allow impls to limit code point range #488

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 6, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions document/appendix/implementation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,17 @@ An implementation may impose restrictions on the following dimensions of a modul
* the length of an :ref:`element segment <syntax-elem>`
* the length of a :ref:`data segment <syntax-data>`
* the length of a :ref:`name <syntax-name>`
* the range of :ref:`code points <syntax-codepoint>` in a :ref:`name <syntax-name>`

If the limits of an implementation are exceeded for a given module,
then the implementation may reject the :ref:`validation <valid>`, compilation, or :ref:`instantiation <exec-instantiate>` of that module with an embedder-specific error.

.. note::
The last item allows embedders that operate in limited environments without support for
`Unicode <http://www.unicode.org/versions/latest/>`_ to limit the
names of :ref:`imports <syntax-import>` and :ref:`exports <syntax-export>`
to common subsets like `ASCII <http://webstore.ansi.org/RecordDetail.aspx?sku=INCITS+4-1986%5bR2012%5d>`_.


.. _impl-binary:
.. index:: binary format, module, section, function, code
Expand Down Expand Up @@ -83,6 +90,7 @@ For a module given in :ref:`text format <text>`, additional limitations may be i
* the size of an individual :ref:`token <text-token>`
* the nesting depth of :ref:`folded instructions <text-foldedinstr>`
* the length of symbolic :ref:`identifiers <text-id>`
* the range of literal :ref:`characters <text-char>` (code points) allowed in the :ref:`source text <source>`


.. _impl-valid:
Expand Down