├── .gitignore ├── .travis.yml ├── Makefile ├── README.md ├── github-deploy-key.enc ├── package.json ├── proposal.html └── publi.sh /.gitignore: -------------------------------------------------------------------------------- 1 | index.html 2 | ecmarkup.css 3 | ecmarkup.js 4 | node_modules 5 | github-deploy-key 6 | github-deploy-key.pub 7 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: node_js 3 | script: 4 | - make 5 | node_js: 6 | - stable 7 | after_success: 8 | - "./publi.sh" 9 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | index.html: proposal.html node_modules 2 | ecmarkup "$<" "$@" 3 | 4 | node_modules: 5 | npm install 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | See [the proposal introduction](https://tc39.github.io/proposal-Symbol-description/) for more info. 2 | -------------------------------------------------------------------------------- /github-deploy-key.enc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tc39/proposal-Symbol-description/c5eb4cee2699dbb41d27476f95653a36d955b1ee/github-deploy-key.enc -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "name": "Symbol-description-proposal", 4 | "version": "0.0.0", 5 | "description": "ECMA-262 proposal to add Symbol.prototype.description", 6 | "main": "index.js", 7 | "scripts": { 8 | "test": "echo \"Error: no test specified\" && exit 1" 9 | }, 10 | "repository": { 11 | "type": "git", 12 | "url": "git+ssh://git@github.com/michaelficarra/Symbol-description-proposal.git" 13 | }, 14 | "keywords": [ 15 | "ECMA-262", 16 | "ECMAScript", 17 | "Symbol", 18 | "description", 19 | "proposal" 20 | ], 21 | "author": "Michael Ficarra", 22 | "license": "UNLICENSED", 23 | "bugs": { 24 | "url": "https://github.com/michaelficarra/Symbol-description-proposal/issues" 25 | }, 26 | "homepage": "https://github.com/michaelficarra/Symbol-description-proposal#readme", 27 | "devDependencies": { 28 | "ecmarkup": "3.11.2" 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /proposal.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
 5 | title: Symbol description accessor
 6 | status: proposal
 7 | stage: 4
 8 | contributors: Michael Ficarra
 9 | location: https://github.com/michaelficarra/Symbol-description-proposal
10 | 
11 | 12 | 13 | 14 |

Introduction

15 |

Goals

16 | 17 | 20 |
21 | 22 | 23 | 24 | 25 |

get Symbol.prototype.description

26 |

`Symbol.prototype.description` is an accessor property whose set accessor function is *undefined*. Its get accessor function performs the following steps:

27 | 28 | 1. Let _s_ be the *this* value. 29 | 1. Let _sym_ be ? thisSymbolValue(_s_). 30 | 1. Return _sym_.[[Description]]. 31 | 32 |
33 | -------------------------------------------------------------------------------- /publi.sh: -------------------------------------------------------------------------------- 1 | CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD) 2 | TEMP_BRANCH=$(date +%s.%N | md5sum | cut -d ' ' -f 1) 3 | if [ "$TRAVIS" == true ]; then 4 | CURRENT_BRANCH="$TRAVIS_BRANCH" 5 | echo "TRAVIS_SECURE_ENV_VARS=$TRAVIS_SECURE_ENV_VARS" 6 | echo "TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST" 7 | echo "TRAVIS_BRANCH=$TRAVIS_BRANCH" 8 | [ "$TRAVIS_SECURE_ENV_VARS" == true -a "$TRAVIS_PULL_REQUEST" == false -a "$TRAVIS_BRANCH" == master ] || exit 1 9 | [ -n "$encrypted_c21317fa31a7_key" -a -n "$encrypted_c21317fa31a7_iv" ] || (echo "Travis CI decryption keys not found"; exit 1) 10 | openssl aes-256-cbc -K "$encrypted_c21317fa31a7_key" -iv "$encrypted_c21317fa31a7_iv" -in github-deploy-key.enc -out github-deploy-key -d 11 | chmod 600 github-deploy-key 12 | eval "$(ssh-agent -s)" 13 | ssh-add github-deploy-key 14 | rm github-deploy-key 15 | git remote set-url --push origin "git@github.com:$TRAVIS_REPO_SLUG.git" 16 | git config --global user.email "contact@travis-ci.com" 17 | git config --global user.name "Travis CI" 18 | echo "Publishing to gh-pages" 19 | fi 20 | set -x 21 | git checkout --orphan "$TEMP_BRANCH" 22 | npm install 23 | make 24 | git reset . 25 | git add -f index.html 26 | git commit -m gh-pages 27 | git push -f origin HEAD:gh-pages 28 | git checkout -f "$CURRENT_BRANCH" 29 | git branch -D "$TEMP_BRANCH" 30 | --------------------------------------------------------------------------------