From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../global_objects/regexp/tosource/index.html | 59 ++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 files/ja/web/javascript/reference/global_objects/regexp/tosource/index.html (limited to 'files/ja/web/javascript/reference/global_objects/regexp/tosource/index.html') diff --git a/files/ja/web/javascript/reference/global_objects/regexp/tosource/index.html b/files/ja/web/javascript/reference/global_objects/regexp/tosource/index.html new file mode 100644 index 0000000000..b56c347fda --- /dev/null +++ b/files/ja/web/javascript/reference/global_objects/regexp/tosource/index.html @@ -0,0 +1,59 @@ +--- +title: RegExp.prototype.toSource() +slug: Web/JavaScript/Reference/Global_Objects/RegExp/toSource +tags: + - JavaScript + - Method + - Non-standard + - Obsolete + - Prototype + - Reference + - RegExp + - Regular Expressions +translation_of: Web/JavaScript/Reference/Global_Objects/RegExp/toSource +--- +
{{JSRef}} {{obsolete_header}}
+ +

toSource() メソッドは、オブジェクトのソースコードを表す文字列を返します。

+ +

構文

+ +
regexObj.toSource()
+
+ +

返値

+ +

A string representing the source code of the given {{jsxref("RegExp")}} object.

+ +

+ +

ネイティブ関数

+ +

組み込み {{jsxref("RegExp")}} オブジェクトでは、 toSource() はソースコードが存在しないことを示す以下の文字列を返します。

+ +
function RegExp() {
+    [native code]
+}
+
+ +

{{jsxref("RegExp")}} のインスタンスでは、 toSource() はソースコードを表す文字列を返します。

+ +

このメソッドは、通常 JavaScript によって内部的に呼び出されるものであり、コード中で明示的に呼び出されることはありません。

+ +

仕様書

+ +

何らかの仕様の一部ではありません。

+ +

ブラウザーの互換性

+ +
+ + +

{{Compat("javascript.builtins.RegExp.toSource")}}

+
+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf