Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Symbol.prototype.toSource()

この記事は編集レビューを必要としています。ぜひご協力ください

この翻訳は不完全です。英語から この記事を翻訳 してください。

非標準
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

オブジェクトのソースコードを表す文字列を返します。

このメソッドはJavaScript内部によって通常呼ばれます。

構文

Symbol.toSource()

var sym = Symbol()
sym.toSource()

説明

toSourceメソッドは次の値を返します。:

  • ビルトインSymbolオブジェクトに対して、toSourceはソースコードが利用可能ではないことを示す次の文字列を返します。:
"function Symbol() {
   [native code]
}"
  • Symbolのインスタンスに対して、toSourceはソースコードを表す文字列を返します。
"Symbol()"

仕様

すべての仕様でサポートされていません。

ブラウザ実装状況

機能 Chrome Firefox (Gecko) Internet Explorer Opera Safari
基本サポート 未サポート 36.0 (36.0) 未サポート 未サポート 未サポート
機能 Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
基本サポート 未サポート 未サポート 36.0 (36.0) 未サポート 未サポート 未サポート

関連情報

ドキュメントのタグと貢献者

 このページの貢献者: shide55
 最終更新者: shide55,