非標準
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.
概要
オブジェクトのソースコードを表す文字列を返します。
構文
regexObj.toSource()
引数
無し。
説明
toSource
メソッドは以下の値を返します。:
- 組み込み
RegExp
オブジェクトでは、toSource
はソースコードが存在しないことを示す以下の文字列を返します。:
function RegExp() { [native code] }
RegExp
オブジェクトのインスタンスでは、toSource
はそのソースコードを表す文字列を返します。
このメソッドは、通常、 JavaScript によって内部的に呼ばれ、コード中で明示的に呼ばれることはありません。