-
Notifications
You must be signed in to change notification settings - Fork 88
(DOCSP-12450): JS Compatibility Table #527
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
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,153 @@ | ||
.. _js-feature-compat: | ||
|
||
================================ | ||
JavaScript Feature Compatibility | ||
================================ | ||
|
||
.. default-domain:: mongodb | ||
|
||
.. contents:: On this page | ||
:local: | ||
:backlinks: none | ||
:depth: 2 | ||
:class: singlecol | ||
|
||
Overview | ||
-------- | ||
|
||
{+service+} :doc:`functions </functions>` fully support JavaScript ES5 syntax as | ||
well as most modern JavaScript features included in EcmaScript 2015 (ES6) and | ||
more recent releases. This page outlines Realm's support for a non-exhaustive | ||
list of features released in or since EcmaScript 2015. | ||
|
||
Syntax | ||
------ | ||
|
||
.. list-table:: | ||
:header-rows: 1 | ||
:widths: 80 20 | ||
|
||
* - Feature | ||
- Supported | ||
|
||
* - :mdn:`arrow function expressions <Web/JavaScript/Reference/Functions/Arrow_functions>` | ||
- Yes | ||
|
||
* - :mdn:`classes <Web/JavaScript/Reference/Classes>` | ||
- Yes | ||
|
||
* - :mdn:`super <Web/JavaScript/Reference/Operators/super>` | ||
- Yes | ||
|
||
* - :mdn:`generators <Web/JavaScript/Reference/Statements/function*>` | ||
- Yes | ||
|
||
* - :mdn:`default function parameters <Web/JavaScript/Reference/Functions/Default_parameters>` | ||
- Yes | ||
|
||
* - :mdn:`rest parameters <Web/JavaScript/Reference/Functions/rest_parameters>` | ||
- Yes | ||
|
||
* - :mdn:`spread iterables <Web/JavaScript/Reference/Operators/Spread_syntax>` | ||
- Yes | ||
|
||
* - :mdn:`object literal extensions <Web/JavaScript/Reference/Operators/Object_initializer#New_notations_in_ECMAScript_2015>` | ||
- Yes | ||
|
||
* - :mdn:`for...of loops <Web/JavaScript/Reference/Statements/for...of>` | ||
- Yes | ||
|
||
* - :mdn:`for await...of loops <Web/JavaScript/Reference/Statements/for-await...of>` | ||
- Yes | ||
|
||
* - :mdn:`octal and binary literals <Web/JavaScript/Reference/Lexical_grammar#Binary>` | ||
- Yes | ||
|
||
* - :mdn:`template literals <Web/JavaScript/Reference/Template_literals>` | ||
- Yes | ||
|
||
* - :mdn:`destructuring assignment <Web/JavaScript/Reference/Operators/Destructuring_assignment>` | ||
- Yes | ||
|
||
* - :mdn:`new.target <Web/JavaScript/Reference/Operators/new.target>` | ||
- Yes | ||
|
||
* - :mdn:`RegExp -y and -u flags <Web/JavaScript/Guide/Regular_Expressions#Advanced_searching_with_flags_2>` | ||
- No | ||
|
||
* - :mdn:`Exponentiation (**) <Web/JavaScript/Reference/Operators/Exponentiation>` | ||
- Yes | ||
|
||
Built-In Objects | ||
---------------- | ||
|
||
.. list-table:: | ||
:header-rows: 1 | ||
:widths: 80 20 | ||
|
||
* - Feature | ||
- Supported | ||
|
||
* - :mdn:`TypedArray <Web/JavaScript/Reference/Global_Objects/TypedArray>` | ||
- Yes | ||
|
||
* - :mdn:`Map <Web/JavaScript/Reference/Global_Objects/Map>` | ||
- Yes | ||
|
||
* - :mdn:`Set <Web/JavaScript/Reference/Global_Objects/Set>` | ||
- Yes | ||
|
||
* - :mdn:`WeakMap <Web/JavaScript/Reference/Global_Objects/WeakMap>` | ||
- Yes | ||
|
||
* - :mdn:`WeakSet <Web/JavaScript/Reference/Global_Objects/WeakSet>` | ||
- No | ||
|
||
* - :mdn:`Proxy <Web/JavaScript/Reference/Global_Objects/Proxy>` | ||
- No | ||
|
||
* - :mdn:`Reflect <Web/JavaScript/Reference/Global_Objects/Reflect>` | ||
- No | ||
|
||
* - :mdn:`Promise <Web/JavaScript/Reference/Global_Objects/Promise>` | ||
- Yes | ||
|
||
* - :mdn:`Symbol <Web/JavaScript/Reference/Global_Objects/Symbol>` | ||
- Yes | ||
|
||
Built-In Object Methods & Properties | ||
------------------------------------ | ||
|
||
.. list-table:: | ||
:header-rows: 1 | ||
:widths: 80 20 | ||
|
||
* - Feature | ||
- Supported | ||
|
||
* - :mdn:`Object static methods <Web/JavaScript/Reference/Global_Objects/Object#Static_methods>` | ||
- Yes | ||
|
||
* - :mdn:`String static methods <Web/JavaScript/Reference/Global_Objects/String#Static_methods>` | ||
- Yes | ||
|
||
* - :mdn:`String.prototype methods <Web/JavaScript/Reference/Global_Objects/String#Instance_methods>` | ||
- Yes | ||
|
||
* - :mdn:`RegExp.prototype properties <Web/JavaScript/Reference/Global_Objects/RegExp#Instance_properties>` | ||
- No | ||
|
||
* - :mdn:`Function.name <Web/JavaScript/Reference/Global_Objects/Function/name>` | ||
- Yes | ||
|
||
* - :mdn:`Array static methods <Web/JavaScript/Reference/Global_Objects/Array#Static_methods>` | ||
- Yes | ||
|
||
* - :mdn:`Array.prototype methods <Web/JavaScript/Reference/Global_Objects/Array#Instance_methods>` | ||
- Yes | ||
|
||
* - :mdn:`Number static methods <Web/JavaScript/Reference/Global_Objects/Number#Static_methods>` | ||
- No | ||
|
||
* - :mdn:`Math methods <Web/JavaScript/Reference/Global_Objects/Math#Static_methods>` | ||
- No |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: is there any advantage of using
:ref:
over the:doc:
here? Seems like they both send you to the same place (top of the Javascript Feature Compatibility page).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No advantage other than we can change the page slug without needing to update this location. There's pros and cons to that but the rest of the realm team seems to prefer ref